Rename to getGroups

This commit is contained in:
Girish Ramakrishnan
2018-06-18 14:10:29 -07:00
parent 7f3114e67d
commit b5c8e7a52a
3 changed files with 10 additions and 10 deletions

View File

@@ -414,9 +414,9 @@ describe('Roles', function () {
});
it('can get roles of a user', function (done) {
groups.getRoles(USER_0.id, function (error, roles) {
expect(roles.length).to.be(1);
expect(roles[0]).to.be('owner');
groups.getGroups(USER_0.id, function (error, results) {
expect(results.length).to.be(1);
expect(results[0].roles).to.eql([ 'owner' ]);
done();
});
});