Skip to content

Commit

Permalink
fix: Failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Squidonomics committed Dec 3, 2023
1 parent cfa35c7 commit 5469663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/UnitTests/APIToRequestMappingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ class APIToRequestMappingTests: XCTestCase {
let session = Session(webDriver: mockWebDriver, existingId: "mySession")

mockWebDriver.expect(path: "session/mySession/window_handles", method: .get, type: Requests.SessionWindowHandle.self) {
ResponseWithValue(.init(windowHandle: nil, windowHandles: ["myWindow", "myWindow"]))
ResponseWithValue(.init(windowHandle: "", windowHandles: ["myWindow", "myWindow"]))
}
XCTAssert(try session.windowHandle(many: true) == (windowHandle: "myWindow", windowHandles: []))
XCTAssert(try session.windowHandle(many: true) == (windowHandle: "", windowHandles: ["myWindow", "myWindow"]))
}
}

0 comments on commit 5469663

Please sign in to comment.