Fixup more tests
This commit is contained in:
@@ -73,7 +73,7 @@ describe('Settings', function () {
|
||||
});
|
||||
|
||||
it('can set default profile config', async function () {
|
||||
await tokens.add({ name: 'token1', identifier: admin.id, clientId: tokens.ID_WEBADMIN, expires: Number.MAX_SAFE_INTEGER, lastUsedTime: null, scope: 'unused' });
|
||||
await tokens.add({ name: 'token1', identifier: admin.id, clientId: tokens.ID_WEBADMIN, expires: Number.MAX_SAFE_INTEGER, lastUsedTime: null });
|
||||
let result = await tokens.listByUserId(admin.id);
|
||||
expect(result.length).to.be(1); // just confirm the token was really added!
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ describe('Tokens', function () {
|
||||
clientId: 'clientid-0',
|
||||
expires: Date.now() + 60 * 60000,
|
||||
lastUsedTime: null,
|
||||
scope: 'unused'
|
||||
scope: { '*': 'rw' }
|
||||
};
|
||||
|
||||
it('add succeeds', async function () {
|
||||
@@ -93,7 +93,7 @@ describe('Tokens', function () {
|
||||
clientId: 'clientid-1',
|
||||
expires: Number.MAX_SAFE_INTEGER,
|
||||
lastUsedTime: null,
|
||||
scope: 'unused'
|
||||
scope: { '*': 'rw' }
|
||||
};
|
||||
const token2 = {
|
||||
name: 'token2',
|
||||
@@ -127,7 +127,7 @@ describe('Tokens', function () {
|
||||
clientId: tokens.ID_WEBADMIN,
|
||||
expires: Number.MAX_SAFE_INTEGER,
|
||||
lastUsedTime: null,
|
||||
scope: 'unused'
|
||||
scope: { '*': 'rw' }
|
||||
};
|
||||
const token2 = {
|
||||
name: 'token2',
|
||||
|
||||
Reference in New Issue
Block a user