Remove tokenScopes

decided that the UI won't use this any more and will just the admin flag
This commit is contained in:
Girish Ramakrishnan
2018-08-03 10:07:21 -07:00
parent ce9fc7b3f7
commit fba70d888b
3 changed files with 1 additions and 8 deletions

View File

@@ -6,8 +6,7 @@
'use strict';
var accesscontrol = require('../../accesscontrol.js'),
config = require('../../config.js'),
var config = require('../../config.js'),
database = require('../../database.js'),
expect = require('expect.js'),
mailer = require('../../mailer.js'),
@@ -105,7 +104,6 @@ describe('Profile API', function () {
expect(result.body.displayName).to.be.a('string');
expect(result.body.password).to.not.be.ok();
expect(result.body.salt).to.not.be.ok();
expect(result.body.tokenScopes).to.eql(accesscontrol.VALID_SCOPES);
user_0 = result.body;
@@ -143,7 +141,6 @@ describe('Profile API', function () {
expect(result.body.displayName).to.be.a('string');
expect(result.body.password).to.not.be.ok();
expect(result.body.salt).to.not.be.ok();
expect(result.body.tokenScopes).to.eql(accesscontrol.VALID_SCOPES);
done();
});
});
@@ -196,7 +193,6 @@ describe('Profile API', function () {
expect(res.body.username).to.equal(USERNAME_0.toLowerCase());
expect(res.body.email).to.equal(EMAIL_0_NEW.toLowerCase());
expect(res.body.fallbackEmail).to.equal(EMAIL_0_NEW_FALLBACK.toLowerCase());
expect(res.body.tokenScopes).to.eql(accesscontrol.VALID_SCOPES);
expect(res.body.displayName).to.equal('');
done();
@@ -217,7 +213,6 @@ describe('Profile API', function () {
expect(res.statusCode).to.equal(200);
expect(res.body.username).to.equal(USERNAME_0.toLowerCase());
expect(res.body.email).to.equal(EMAIL_0_NEW.toLowerCase());
expect(res.body.tokenScopes).to.eql(accesscontrol.VALID_SCOPES);
expect(res.body.displayName).to.equal(DISPLAY_NAME_0_NEW);
done();