Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed Jul 4, 2023
1 parent 99d1d92 commit 05ebc81
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/ldap.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ describe('Test LDAP Service', () => {

expect.assertions(2);
try {
await ldapService.searchAll(
'',
{ filter: '&(objectClass=Person)', scope: 'sub' }
);
await ldapService.searchAll();
} catch (error) {
expect(error).toBeInstanceOf(Error);
expect(error.message).toEqual('Bad search request');
Expand All @@ -67,10 +64,7 @@ describe('Test LDAP Service', () => {

expect.assertions(2);
try {
await ldapService.searchAll(
'',
{ filter: '&(objectClass=Person)', scope: 'sub' }
);
await ldapService.searchAll();
} catch (error) {
expect(error).toBeInstanceOf(Error);
expect(error.message).toEqual('Timeout search request');
Expand Down

0 comments on commit 05ebc81

Please sign in to comment.