forked from sombochea/verdaccio-ui
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