Skip to content

Commit 12f6fb6

Browse files
Fix test case compilation where then block returns nothing
1 parent 6bd0492 commit 12f6fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/JavaScriptEventLoopTests/JavaScriptEventLoopTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ final class JavaScriptEventLoopTests: XCTestCase {
171171
100
172172
)
173173
}
174-
let failingPromise2 = failingPromise.then { _ in
174+
let failingPromise2 = failingPromise.then { _ -> JSValue in
175175
throw MessageError("Should not be called", file: #file, line: #line, column: #column)
176176
} failure: { err in
177177
return err

0 commit comments

Comments
 (0)