1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-05-03 01:51:37 +07:00

chore: readded null check (#173)

This commit is contained in:
Thomas Klein 2019-10-10 20:52:59 +02:00 committed by Juan Picado @jotadeveloper
parent d1ce82854a
commit 68b7171de4

View File

@ -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();
});