Skip to content

Commit

Permalink
fix: Failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Squidonomics committed Nov 30, 2023
1 parent c920a6f commit b0df1da
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 @@ -174,7 +174,7 @@ class APIToRequestMappingTests: XCTestCase {
let mockWebDriver = MockWebDriver()
let session = Session(webDriver: mockWebDriver, existingId: "mySession")
try session.execute(javascript: "return document.body", args: [], async: false)
mockWebDriver.expect(path: "session/mySession/execute", method: .post) {
mockWebDriver.expect(path: "session/mySession/execute", method: .post, type: Requests.SessionScript.self) {
XCTAssertEqual($0.javascript, "return document.body")
XCTAssertEqual($0.args, [])
XCTAssertEqual($0.async, true)
Expand All @@ -186,7 +186,7 @@ class APIToRequestMappingTests: XCTestCase {
func testSessionScriptAsync() throws {
let mockWebDriver = MockWebDriver()
let session = Session(webDriver: mockWebDriver, existingId: "mySession")
mockWebDriver.expect(path: "session/mySession/execute_async", method: .post) {
mockWebDriver.expect(path: "session/mySession/execute_async", method: .post, type: Requests.SessionScript.self) {
XCTAssertEqual($0.javascript, "return document.body")
XCTAssertEqual($0.args, [])
XCTAssertEqual($0.async, true)
Expand Down

0 comments on commit b0df1da

Please sign in to comment.