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
+5 -5
View File
@@ -512,7 +512,7 @@ describe('External LDAP', function () {
externalldap.sync(function progress() {}, async function (error) {
expect(error).to.equal(null);
const result = await groups.getAll();
const result = await groups.list();
expect(result.length).to.equal(0);
done();
@@ -536,7 +536,7 @@ describe('External LDAP', function () {
externalldap.sync(function progress() {}, async function (error) {
expect(error).to.equal(null);
const result = await groups.getAll();
const result = await groups.list();
expect(result.length).to.equal(0);
done();
@@ -551,7 +551,7 @@ describe('External LDAP', function () {
externalldap.sync(function progress() {}, async function (error) {
expect(error).to.equal(null);
const result = await groups.getAll();
const result = await groups.list();
expect(result.length).to.equal(1);
done();
@@ -566,7 +566,7 @@ describe('External LDAP', function () {
externalldap.sync(function progress() {}, async function (error) {
expect(error).to.equal(null);
const result = await groups.getAll();
const result = await groups.list();
expect(result.length).to.equal(2);
done();
@@ -583,7 +583,7 @@ describe('External LDAP', function () {
await groups.add({ name: 'internalgroup' });
await externalldapSync(function progress() {});
const result = await groups.getAll();
const result = await groups.list();
expect(result.length).to.equal(3);
});