Skip to content

Commit 516e1a8

Browse files
Format Swift sources
1 parent a7d2461 commit 516e1a8

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Tests/BridgeJSRuntimeTests/ImportAPITests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ import JavaScriptKit
1414
}
1515

1616
@JSFunction func jsRoundTripLightColor(_ value: LightColor) throws(JSException) -> LightColor
17-
@JSFunction func jsRoundTripImportedPayloadSignal(_ value: ImportedPayloadSignal) throws(JSException) -> ImportedPayloadSignal
17+
@JSFunction func jsRoundTripImportedPayloadSignal(
18+
_ value: ImportedPayloadSignal
19+
) throws(JSException) -> ImportedPayloadSignal
1820
@JSFunction func jsRoundTripOptionalImportedPayloadSignal(
1921
_ value: ImportedPayloadSignal?
2022
) throws(JSException) -> ImportedPayloadSignal?

Tests/JavaScriptEventLoopTests/JSClosure+AsyncTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class JSClosureAsyncTests: XCTestCase {
7272
)!.value()
7373
XCTAssertEqual(result, 42.0)
7474
}
75-
75+
7676
func testAsyncOneshotClosureWithPriority() async throws {
7777
let priority = UnsafeSendableBox<TaskPriority?>(nil)
7878
let closure = JSOneshotClosure.async(priority: .high) { _ in
@@ -83,7 +83,7 @@ class JSClosureAsyncTests: XCTestCase {
8383
XCTAssertEqual(result, 42.0)
8484
XCTAssertEqual(priority.value, .high)
8585
}
86-
86+
8787
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
8888
func testAsyncOneshotClosureWithTaskExecutor() async throws {
8989
let executor = AnyTaskExecutor()
@@ -93,7 +93,7 @@ class JSClosureAsyncTests: XCTestCase {
9393
let result = try await JSPromise(from: closure.function!())!.value()
9494
XCTAssertEqual(result, 42.0)
9595
}
96-
96+
9797
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
9898
func testAsyncOneshotClosureWithTaskExecutorPreference() async throws {
9999
let executor = AnyTaskExecutor()

0 commit comments

Comments
 (0)