make the tests work

This commit is contained in:
Girish Ramakrishnan
2021-06-29 09:44:16 -07:00
parent 31498afe39
commit ea430b255b
11 changed files with 461 additions and 371 deletions

View File

@@ -170,15 +170,15 @@ describe('Groups', function () {
expect(groupIds.sort()).to.eql([ group0Object.id, group1Object.id ].sort());
});
it('can getAll', async function () {
const result = await groups.getAll();
it('can list', async function () {
const result = await groups.list();
expect(result.length).to.be(2);
expect(result[0].name).to.be(group0Name);
expect(result[1].name).to.be(group1Name);
});
it('can getAllWithMembers', async function () {
const result = await groups.getAllWithMembers();
it('can listWithMembers', async function () {
const result = await groups.listWithMembers();
expect(result.length).to.be(2);
expect(result[0].name).to.be(group0Name);
expect(result[1].userIds).to.eql([ ADMIN.id ]);