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:', () => {
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' ,
You can’t perform that action at this time.
0 commit comments