mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
test: fix another test
This commit is contained in:
@@ -63,7 +63,7 @@ describe('API tokens', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should fail if you pass in invalid data', async () => {
|
it('should fail if you pass in invalid data', async () => {
|
||||||
await assert.rejects(api.utils.tokens.get(token), { message: '[[error:invalid-data]]' });
|
await assert.rejects(api.utils.tokens.get(null), { message: '[[error:invalid-data]]' });
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should show lastSeen and lastSeenISO as undefined/null if it is a new token', async () => {
|
it('should show lastSeen and lastSeenISO as undefined/null if it is a new token', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user