Skip to content

Commit 026d8de

Browse files
committed
chore: improved naming
1 parent 3258ee9 commit 026d8de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/auth/__tests__/providers/cognito/signInErrorCases.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ describe('signIn API error path cases:', () => {
9595
throw getMockError(InitiateAuthException.InvalidParameterException);
9696
});
9797

98-
const p = signIn({
98+
const signInResultPromise = signIn({
9999
username: authAPITestParams.user1.username,
100100
password: authAPITestParams.user1.password,
101101
});
102102

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

119-
const p = signIn({
119+
const signInResultPromise = signIn({
120120
username: authAPITestParams.user1.username,
121121
password: authAPITestParams.user1.password,
122122
options: {
123123
authFlowType: 'USER_PASSWORD_AUTH',
124124
},
125125
});
126126

127-
expect(p).rejects.toThrow(
127+
expect(signInResultPromise).rejects.toThrow(
128128
new AuthError({
129129
name: AuthErrorCodes.SignInException,
130130
message: 'Cannot initiate MFA setup from available types: SMS',

0 commit comments

Comments
 (0)