Skip to content

Commit c6dd19c

Browse files
committed
update reset route in tests
1 parent d8c4834 commit c6dd19c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/AppTests/PortalTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class PortalTests: AppTestCase {
172172
$0.cognito.resetPassword = mock
173173
$0.environment.dbId = { nil }
174174
} operation: {
175-
try app.test(.POST, "reset", beforeRequest: { req in try req.content.encode(["email": "testemail", "password": "testpassword", "confirmationCode": "123"])
175+
try app.test(.POST, "reset-password", beforeRequest: { req in try req.content.encode(["email": "testemail", "password": "testpassword", "confirmationCode": "123"])
176176
}, afterResponse: { res in
177177
XCTAssertEqual(res.status, .ok)
178178
XCTAssertTrue(res.body.string.contains("Successfully changed password"))
@@ -186,7 +186,7 @@ class PortalTests: AppTestCase {
186186
$0.cognito.resetPassword = mock
187187
$0.environment.dbId = { nil }
188188
} operation: {
189-
try app.test(.POST, "reset", beforeRequest: { req in try req.content.encode(["email": "testemail", "password": "testpassword", "confirmationCode": "123"])
189+
try app.test(.POST, "reset-password", beforeRequest: { req in try req.content.encode(["email": "testemail", "password": "testpassword", "confirmationCode": "123"])
190190
}, afterResponse: { res in
191191
XCTAssertTrue(res.body.string.contains("There was an error"))
192192
})
@@ -200,7 +200,7 @@ class PortalTests: AppTestCase {
200200
$0.cognito.resetPassword = mock
201201
$0.environment.dbId = { nil }
202202
} operation: {
203-
try app.test(.POST, "reset", beforeRequest: { req in try req.content.encode(["email": "testemail", "password": "testpassword", "confirmationCode": "123"])
203+
try app.test(.POST, "reset-password", beforeRequest: { req in try req.content.encode(["email": "testemail", "password": "testpassword", "confirmationCode": "123"])
204204
}, afterResponse: { res in
205205
XCTAssertTrue(res.body.string.contains("An unknown error occurred"))
206206
})

0 commit comments

Comments
 (0)