Skip to content

Commit

Permalink
chore: improved naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jjarvisp committed Oct 24, 2024
1 parent 3258ee9 commit 026d8de
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ describe('signIn API error path cases:', () => {
throw getMockError(InitiateAuthException.InvalidParameterException);
});

const p = signIn({
const signInResultPromise = signIn({
username: authAPITestParams.user1.username,
password: authAPITestParams.user1.password,
});

expect(p).rejects.toThrow(
expect(signInResultPromise).rejects.toThrow(
new AuthError({
name: InitiateAuthException.InvalidParameterException,
message: 'Error message',
Expand All @@ -116,15 +116,15 @@ describe('signIn API error path cases:', () => {
$metadata: {},
}));

const p = signIn({
const signInResultPromise = signIn({
username: authAPITestParams.user1.username,
password: authAPITestParams.user1.password,
options: {
authFlowType: 'USER_PASSWORD_AUTH',
},
});

expect(p).rejects.toThrow(
expect(signInResultPromise).rejects.toThrow(
new AuthError({
name: AuthErrorCodes.SignInException,
message: 'Cannot initiate MFA setup from available types: SMS',
Expand Down

0 comments on commit 026d8de

Please sign in to comment.