Fixup some token tests and error handling

This commit is contained in:
Johannes Zellner
2022-09-24 17:29:42 +02:00
parent 70d3040135
commit 15d473d506
2 changed files with 7 additions and 5 deletions

View File

@@ -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 () {