Fixup the unit tests after removing PREFIX_USER

This commit is contained in:
Johannes Zellner
2016-06-03 13:03:52 +02:00
parent 7667cdc66d
commit b4dfad3aa3
7 changed files with 12 additions and 12 deletions

View File

@@ -366,21 +366,21 @@ describe('database', function () {
describe('token', function () {
var TOKEN_0 = {
accessToken: tokendb.generateToken(),
identifier: tokendb.PREFIX_USER + '0',
identifier: '0',
clientId: 'clientid-0',
expires: Date.now() + 60 * 60000,
scope: '*'
};
var TOKEN_1 = {
accessToken: tokendb.generateToken(),
identifier: tokendb.PREFIX_USER + '1',
identifier: '1',
clientId: 'clientid-1',
expires: Number.MAX_SAFE_INTEGER,
scope: '*'
};
var TOKEN_2 = {
accessToken: tokendb.generateToken(),
identifier: tokendb.PREFIX_USER + '2',
identifier: '2',
clientId: 'clientid-2',
expires: Date.now(),
scope: '*'