File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/auth/__tests__/providers/cognito Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,12 +95,12 @@ describe('signIn API error path cases:', () => {
95
95
throw getMockError ( InitiateAuthException . InvalidParameterException ) ;
96
96
} ) ;
97
97
98
- const p = signIn ( {
98
+ const signInResultPromise = signIn ( {
99
99
username : authAPITestParams . user1 . username ,
100
100
password : authAPITestParams . user1 . password ,
101
101
} ) ;
102
102
103
- expect ( p ) . rejects . toThrow (
103
+ expect ( signInResultPromise ) . rejects . toThrow (
104
104
new AuthError ( {
105
105
name : InitiateAuthException . InvalidParameterException ,
106
106
message : 'Error message' ,
@@ -116,15 +116,15 @@ describe('signIn API error path cases:', () => {
116
116
$metadata : { } ,
117
117
} ) ) ;
118
118
119
- const p = signIn ( {
119
+ const signInResultPromise = signIn ( {
120
120
username : authAPITestParams . user1 . username ,
121
121
password : authAPITestParams . user1 . password ,
122
122
options : {
123
123
authFlowType : 'USER_PASSWORD_AUTH' ,
124
124
} ,
125
125
} ) ;
126
126
127
- expect ( p ) . rejects . toThrow (
127
+ expect ( signInResultPromise ) . rejects . toThrow (
128
128
new AuthError ( {
129
129
name : AuthErrorCodes . SignInException ,
130
130
message : 'Cannot initiate MFA setup from available types: SMS' ,
You can’t perform that action at this time.
0 commit comments