make ADMIN_GROUP_ID a constant

This commit is contained in:
Girish Ramakrishnan
2016-09-20 15:07:11 -07:00
parent 7fde57f7de
commit 9a000ddaf0
10 changed files with 27 additions and 24 deletions

View File

@@ -634,7 +634,7 @@ describe('User', function () {
user1.id = result.id;
user.setGroups(user1.id, [ groups.ADMIN_GROUP_ID ], function (error) {
user.setGroups(user1.id, [ constants.ADMIN_GROUP_ID ], function (error) {
expect(error).to.not.be.ok();
// one mail for user creation, one mail for admin change
@@ -644,7 +644,7 @@ describe('User', function () {
});
it('add user to non admin group does not trigger admin mail', function (done) {
user.setGroups(user1.id, [ groups.ADMIN_GROUP_ID, NON_ADMIN_GROUP ], function (error) {
user.setGroups(user1.id, [ constants.ADMIN_GROUP_ID, NON_ADMIN_GROUP ], function (error) {
expect(error).to.equal(null);
checkMails(0, done);
@@ -687,7 +687,7 @@ describe('User', function () {
user1.id = result.id;
groups.setGroups(user1.id, [ groups.ADMIN_GROUP_ID ], function (error) {
groups.setGroups(user1.id, [ constants.ADMIN_GROUP_ID ], function (error) {
expect(error).to.eql(null);
user.getAllAdmins(function (error, admins) {