Allow admins to access all apps

Fixes #420
This commit is contained in:
Girish Ramakrishnan
2017-11-15 18:07:10 -08:00
parent 5663cf45f8
commit 1babfb6e87
4 changed files with 40 additions and 30 deletions

View File

@@ -325,11 +325,13 @@ describe('Apps', function () {
});
});
it('succeeds with admin not being special', function (done) {
it('returns all apps for admin', function (done) {
apps.getAllByUser(ADMIN_0, function (error, result) {
expect(error).to.equal(null);
expect(result.length).to.equal(1);
expect(result.length).to.equal(3);
expect(result[0].id).to.equal(APP_0.id);
expect(result[1].id).to.equal(APP_1.id);
expect(result[2].id).to.equal(APP_2.id);
done();
});
});