test: remove unnecessary variable

This commit is contained in:
Marc Littlemore 2024-12-10 12:39:43 +00:00
parent a79a1bf4e2
commit cf0a23838e
No known key found for this signature in database

View file

@ -1389,13 +1389,11 @@ describe('LdapService', () => {
describe('stopSync()', () => {
it('should clear the scheduled timer', async () => {
const givenConfig = {
const ldapService = createDefaultLdapService({
...ldapConfig,
synchronizationEnabled: true,
synchronizationInterval: 10,
};
const ldapService = createDefaultLdapService(givenConfig);
});
const clearIntervalSpy = jest.spyOn(global, 'clearInterval');