Skip to content

Commit

Permalink
Remove reference to outdated test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrancis committed Nov 13, 2024
1 parent eb28b55 commit 3aba713
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/test/passwords-test.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -23,8 +16,4 @@ describe('Passwords', () => {
expect(Passwords.compareSync(passFake, passHash)).toBeFalsy();
expect(Passwords.compareSync(pass, passFakeHashSync)).toBeFalsy();
});

afterEach(() => {
jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout;
});
});

0 comments on commit 3aba713

Please sign in to comment.