Skip to content

Commit c767b59

Browse files
committed
Fix type error in totp unit test.
1 parent 78b3d41 commit c767b59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/auth/src/mfa/assertions/totp.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe('core/mfa/assertions/totp/TotpMultiFactorGenerator', () => {
9393
);
9494
await TotpMultiFactorGenerator.generateSecret(session);
9595
} catch (e) {
96-
expect(e.code).to.eql(`auth/${AuthErrorCode.INTERNAL_ERROR}`);
96+
expect((e as any).code).to.eql(`auth/${AuthErrorCode.INTERNAL_ERROR}`);
9797
}
9898
});
9999
it('generateSecret should generate a valid secret by starting enrollment', async () => {

0 commit comments

Comments
 (0)