Skip to content

Commit

Permalink
fixed unit tests that broke while resolving conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh62 committed Nov 29, 2023
1 parent 8e393cf commit 32ebfa7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class AWSAuthConfirmSignInWithMagicLinkTaskTests: BasePluginTest {
mockRespondToAuthChallengeResponse: { request in
XCTAssertEqual(request.challengeName, .customChallenge)
XCTAssertEqual(request.challengeResponses?["ANSWER"], "code")
XCTAssertEqual(request.clientMetadata?["Amplify.Passwordless.signInMethod"], "MAGIC_LINK")
XCTAssertEqual(request.clientMetadata?["Amplify.Passwordless.action"], "CONFIRM")
XCTAssertEqual(request.clientMetadata?["amplify.passwordless.signInMethod"], "MAGIC_LINK")
XCTAssertEqual(request.clientMetadata?["amplify.passwordless.action"], "CONFIRM")
XCTAssertEqual(request.clientMetadata?["somekey"], "somevalue")
return .testData()
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class AWSAuthConfirmSignInWithOTPTaskTests: BasePluginTest {
mockRespondToAuthChallengeResponse: { request in
XCTAssertEqual(request.challengeName, .customChallenge)
XCTAssertEqual(request.challengeResponses?["ANSWER"], "code")
XCTAssertEqual(request.clientMetadata?["Amplify.Passwordless.signInMethod"], "OTP")
XCTAssertEqual(request.clientMetadata?["Amplify.Passwordless.action"], "CONFIRM")
XCTAssertEqual(request.clientMetadata?["amplify.passwordless.signInMethod"], "OTP")
XCTAssertEqual(request.clientMetadata?["amplify.passwordless.action"], "CONFIRM")
XCTAssertEqual(request.clientMetadata?["somekey"], "somevalue")
return .testData()
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ class AWSAuthSignInWithMagicLinkTaskTests: BasePluginTest {
],
session: "someSession")
}, mockRespondToAuthChallengeResponse: { input in
XCTAssertEqual(input.clientMetadata?["Amplify.Passwordless.signInMethod"], "MAGIC_LINK")
XCTAssertEqual(input.clientMetadata?["Amplify.Passwordless.action"], "REQUEST")
XCTAssertEqual(input.clientMetadata?["Amplify.Passwordless.deliveryMedium"], "EMAIL")
XCTAssertEqual(input.clientMetadata?["amplify.passwordless.signInMethod"], "MAGIC_LINK")
XCTAssertEqual(input.clientMetadata?["amplify.passwordless.action"], "REQUEST")
XCTAssertEqual(input.clientMetadata?["amplify.passwordless.deliveryMedium"], "EMAIL")
XCTAssertEqual(input.clientMetadata?["somekey"], "somevalue")

return RespondToAuthChallengeOutput(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ class AWSAuthSignInWithOTPTaskTests: BasePluginTest {
],
session: "someSession")
}, mockRespondToAuthChallengeResponse: { input in
XCTAssertEqual(input.clientMetadata?["Amplify.Passwordless.signInMethod"], "OTP")
XCTAssertEqual(input.clientMetadata?["Amplify.Passwordless.action"], "REQUEST")
XCTAssertEqual(input.clientMetadata?["Amplify.Passwordless.deliveryMedium"], "EMAIL")
XCTAssertEqual(input.clientMetadata?["amplify.passwordless.signInMethod"], "OTP")
XCTAssertEqual(input.clientMetadata?["amplify.passwordless.action"], "REQUEST")
XCTAssertEqual(input.clientMetadata?["amplify.passwordless.deliveryMedium"], "EMAIL")
XCTAssertEqual(input.clientMetadata?["somekey"], "somevalue")

return RespondToAuthChallengeOutput(
Expand Down

0 comments on commit 32ebfa7

Please sign in to comment.