SCOPE_* vars are unused now

This commit is contained in:
Girish Ramakrishnan
2020-02-11 17:32:58 -08:00
parent 4d050725b7
commit 4b93b31c3d
4 changed files with 10 additions and 14 deletions

View File

@@ -6,8 +6,7 @@
'use strict';
var accesscontrol = require('../../accesscontrol.js'),
constants = require('../../constants.js'),
var constants = require('../../constants.js'),
database = require('../../database.js'),
expect = require('expect.js'),
hat = require('../../hat.js'),
@@ -110,7 +109,7 @@ describe('Profile API', function () {
var token = hat(8 * 32);
var expires = Date.now() - 2000; // 1 sec
tokendb.add({ id: 'tid-3', accessToken: token, identifier: user_0.id, clientId: null, expires: expires, scope: accesscontrol.SCOPE_PROFILE, name: 'fromtest' }, function (error) {
tokendb.add({ id: 'tid-3', accessToken: token, identifier: user_0.id, clientId: null, expires: expires, scope: 'unused', name: 'fromtest' }, function (error) {
expect(error).to.not.be.ok();
superagent.get(SERVER_URL + '/api/v1/profile').query({ access_token: token }).end(function (error, result) {