Skip to content

Commit

Permalink
fix: use correct import paths in fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
simonseyock committed Jun 25, 2024
1 parent 00725d9 commit f891c48
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package java2typescript.transformer

import com.github.javaparser.ast.expr.{MethodCallExpr, NameExpr, ObjectCreationExpr}
import com.github.javaparser.ast.stmt.{AssertStmt, BlockStmt, BreakStmt, CatchClause, ContinueStmt, DoStmt, EmptyStmt, ExplicitConstructorInvocationStmt, ExpressionStmt, ForEachStmt, ForStmt, IfStmt, ReturnStmt, Statement, SwitchStmt, ThrowStmt, TryStmt, WhileStmt}
import java2typescript.ast

Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/fixtures/classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export class B {
}
```
```typescript
import { B } from "/A.ts";
import { B } from "./A.ts";
export class C {
private ab: B = new B();
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/fixtures/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function method(): Test {
}
```
```typescript
import { Test, method } from "/Test.ts";
import { Test, method } from "./Test.ts";
export class A {
private method(): boolean {
let a: Test = Test.A;
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/fixtures/overloading.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class A {
let a: number = args[0];
let b: string = args[1];
}
if (args.length === 1 && typeof args[0] === "array") {
if (args.length === 1 && Array.isArray(args[0])) {
let c: boolean[] = args[0];
}
throw new Error("overload does not exist");
Expand Down

0 comments on commit f891c48

Please sign in to comment.