Skip to content

Commit

Permalink
Update credentials-manager.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
poovamraj committed Aug 9, 2023
1 parent 7c5aa23 commit 1ed8fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/credentials-manager/__tests__/credentials-manager.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ describe('credentials manager tests', () => {

it('throws when expiresIn type is empty', async () => {
const testToken = Object.assign({}, validToken);
testToken.expiresIn = undefined;
testToken.expiresAt = undefined;
await expect(
credentialsManager.saveCredentials(testToken)
).rejects.toThrow();
});

it('throws when expiresIn type is zero', async () => {
const testToken = Object.assign({}, validToken);
testToken.expiresIn = 0;
testToken.expiresAt = 0;
await expect(
credentialsManager.saveCredentials(testToken)
).rejects.toThrow();
Expand Down

0 comments on commit 1ed8fde

Please sign in to comment.