Skip to content

Commit 6460aeb

Browse files
BridgeJS: Cover static methods in ts2swift tests
1 parent c446901 commit 6460aeb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Plugins/BridgeJS/Sources/TS2Swift/JavaScript/test/__snapshots__/ts2swift.test.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ exports[`ts2swift > snapshots Swift output for TypeScriptClass.d.ts > TypeScript
295295
@JSFunction init(_ name: String) throws(JSException)
296296
@JSFunction func greet() throws(JSException) -> String
297297
@JSFunction func changeName(_ name: String) throws(JSException) -> Void
298+
@JSFunction static func staticMethod(_ p1: Double, _ p2: String) throws(JSException) -> String
298299
}
299300
"
300301
`;

Plugins/BridgeJS/Sources/TS2Swift/JavaScript/test/fixtures/TypeScriptClass.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ export class Greeter {
44
constructor(name: string);
55
greet(): string;
66
changeName(name: string): void;
7+
8+
static staticMethod(p1: number, p2: string): string;
79
}

0 commit comments

Comments
 (0)