make the tests work
This commit is contained in:
@@ -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 ]);
|
||||
|
||||
Reference in New Issue
Block a user