Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
chore: readded null check (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmkn authored and juanpicado committed Oct 10, 2019
1 parent d1ce828 commit 68b7171
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/login.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jest.mock('./api', () => ({
}));

describe('isTokenExpire', (): void => {
test('isTokenExpire - null is not a valid payload', (): void => {
expect(isTokenExpire(null)).toBeTruthy();
});

test('isTokenExpire - token is not a valid payload', (): void => {
expect(isTokenExpire('not_a_valid_token')).toBeTruthy();
});
Expand Down

0 comments on commit 68b7171

Please sign in to comment.