mirror of
https://github.com/SomboChea/ui
synced 2024-11-05 06:04:28 +07:00
chore: readded null check (#173)
This commit is contained in:
parent
d1ce82854a
commit
68b7171de4
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user