Fixup some token tests and error handling
This commit is contained in:
@@ -23,14 +23,15 @@ describe('janitor', function () {
|
||||
clientId: 'clientid-1',
|
||||
expires: Number.MAX_SAFE_INTEGER,
|
||||
lastUsedTime: null,
|
||||
scope: 'unused'
|
||||
scope: { '*': 'rw' }
|
||||
};
|
||||
const token2 = {
|
||||
name: 'token2',
|
||||
identifier: '2',
|
||||
clientId: 'clientid-2',
|
||||
expires: Date.now(),
|
||||
lastUsedTime: null
|
||||
lastUsedTime: null,
|
||||
scope: null //{ '*': 'rw '}
|
||||
};
|
||||
|
||||
it('can cleanupTokens', async function () {
|
||||
|
||||
Reference in New Issue
Block a user