Skip to content

Commit e9471c9

Browse files
committed
Fix test
1 parent 48b4fc8 commit e9471c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

IdentityCore/tests/MSIDSwitchBrowserOperationTest.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ final class MSIDSwitchBrowserOperationTest: XCTestCase
148148

149149
XCTAssertEqual(1, certAuthManagerMock.startWithUrlInvokedCount)
150150
XCTAssertEqual(1, certAuthManagerMock.resetStateInvokedCount)
151-
XCTAssertEqual(URL(string: "some_uri?code=some_code"), certAuthManagerMock.startURLProvidedParam)
151+
XCTAssertEqual(URL(string: "some_uri?state=state&code=some_code"), certAuthManagerMock.startURLProvidedParam)
152152
}
153153

154154
func testInvoke_whenWebRequestConfigurationReturnError_shouldReturnError() async throws
@@ -186,7 +186,7 @@ final class MSIDSwitchBrowserOperationTest: XCTestCase
186186

187187
XCTAssertEqual(1, certAuthManagerMock.startWithUrlInvokedCount)
188188
XCTAssertEqual(1, certAuthManagerMock.resetStateInvokedCount)
189-
XCTAssertEqual(URL(string: "some_uri?code=some_code"), certAuthManagerMock.startURLProvidedParam)
189+
XCTAssertEqual(URL(string: "some_uri?state=state&code=some_code"), certAuthManagerMock.startURLProvidedParam)
190190
XCTAssertEqual(1, webRequestConfigurationMock.responseWithResultURLInvokedCount)
191191
}
192192

@@ -222,7 +222,7 @@ final class MSIDSwitchBrowserOperationTest: XCTestCase
222222

223223
XCTAssertEqual(1, certAuthManagerMock.startWithUrlInvokedCount)
224224
XCTAssertEqual(1, certAuthManagerMock.resetStateInvokedCount)
225-
XCTAssertEqual(URL(string: "some_uri?code=some_code"), certAuthManagerMock.startURLProvidedParam)
225+
XCTAssertEqual(URL(string: "some_uri?state=state&code=some_code"), certAuthManagerMock.startURLProvidedParam)
226226
XCTAssertEqual(1, webRequestConfigurationMock.responseWithResultURLInvokedCount)
227227
}
228228
}

0 commit comments

Comments
 (0)