diff --git a/src/test/passwords-test.ts b/src/test/passwords-test.ts index 14d56cf45..bfa2b15a3 100644 --- a/src/test/passwords-test.ts +++ b/src/test/passwords-test.ts @@ -1,13 +1,6 @@ import * as Passwords from '../passwords'; describe('Passwords', () => { - let originalTimeout: number; - beforeEach(() => { - // Increase timeout because bcrypt is slow - originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL; - jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000; - }); - it('should be able to generate and compare hashes', async () => { const pass = 'apple'; const passFake = 'orange'; @@ -23,8 +16,4 @@ describe('Passwords', () => { expect(Passwords.compareSync(passFake, passHash)).toBeFalsy(); expect(Passwords.compareSync(pass, passFakeHashSync)).toBeFalsy(); }); - - afterEach(() => { - jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout; - }); });