@@ -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