@@ -172,7 +172,7 @@ class PortalTests: AppTestCase {
172
172
$0. cognito. resetPassword = mock
173
173
$0. environment. dbId = { nil }
174
174
} 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 " ] )
176
176
} , afterResponse: { res in
177
177
XCTAssertEqual ( res. status, . ok)
178
178
XCTAssertTrue ( res. body. string. contains ( " Successfully changed password " ) )
@@ -186,7 +186,7 @@ class PortalTests: AppTestCase {
186
186
$0. cognito. resetPassword = mock
187
187
$0. environment. dbId = { nil }
188
188
} 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 " ] )
190
190
} , afterResponse: { res in
191
191
XCTAssertTrue ( res. body. string. contains ( " There was an error " ) )
192
192
} )
@@ -200,7 +200,7 @@ class PortalTests: AppTestCase {
200
200
$0. cognito. resetPassword = mock
201
201
$0. environment. dbId = { nil }
202
202
} 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 " ] )
204
204
} , afterResponse: { res in
205
205
XCTAssertTrue ( res. body. string. contains ( " An unknown error occurred " ) )
206
206
} )
0 commit comments