From 3aba7132e7b7f926eb8d299dfb41c91bea0dee2d Mon Sep 17 00:00:00 2001 From: Ben Francis Date: Wed, 13 Nov 2024 15:40:04 +0000 Subject: [PATCH] Remove reference to outdated test runner --- src/test/passwords-test.ts | 11 ----------- 1 file changed, 11 deletions(-) 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; - }); });