jefer94/choco

View on GitHub
packages/password/src/decrypt.test.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { encrypt } from './encrypt'
import { decrypt } from './decrypt'

test('hash', async () => {
  const hash = await encrypt('password')

  expect(await decrypt('password', hash)).toBeTruthy()
  expect(await decrypt('pass', hash)).toBeFalsy()
})