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