Rename to groups.update

This commit is contained in:
Girish Ramakrishnan
2018-06-18 13:41:27 -07:00
parent 898cbd01b3
commit 1dbcf2a46a
5 changed files with 14 additions and 13 deletions

View File

@@ -399,7 +399,7 @@ describe('Roles', function () {
after(cleanup);
it('can set roles', function (done) {
groups.setRoles(group0Object.id, [ accesscontrol.ROLE_OWNER ], function (error) {
groups.update(group0Object.id, { roles: [ accesscontrol.ROLE_OWNER ] }, function (error) {
expect(error).to.be(null);
done();
});
@@ -422,7 +422,7 @@ describe('Roles', function () {
});
it('cannot set invalid role', function (done) {
groups.setRoles(group0Object.id, [ accesscontrol.ROLE_OWNER, 'janitor' ], function (error) {
groups.update(group0Object.id, { roles: [ accesscontrol.ROLE_OWNER, 'janitor' ] }, function (error) {
expect(error).to.be.ok();
done();
});