Skip to content

Commit

Permalink
refactor(service): users/auth: add todo comment on old test
Browse files Browse the repository at this point in the history
  • Loading branch information
restjohn committed Sep 18, 2024
1 parent ae99dd5 commit 65ac78b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/test/utilities/password-hashing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ describe('password hashing', function() {
})

it('should validate password', async function() {
// TODO: what is this testing?
const hash = [
crypto.randomBytes(128).toString('base64').slice(0, 128),
crypto.randomBytes(256).toString('base64'),
256,
12000,
].join('::')
const valid = await hasher.validPassword('password', hash)
expect(valid).to.be.true
await hasher.validPassword('password', hash)
})

it('has meaningful tests', async function() {
Expand Down

0 comments on commit 65ac78b

Please sign in to comment.