Skip to content

Commit

Permalink
tests: update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
barelyhuman committed Jan 11, 2024
1 parent 41b7f3b commit 4f7c082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/basic.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test } from 'uvu'
import * as assert from 'uvu/assert'
import { generateTOTPSecret, validateTOTP, totp } from '../src/index.js'
import { generateTOTPSecret, isTOTPValid, totp } from '../src/index.js'

test('generate 2 different secrets', async () => {
const secret = generateTOTPSecret()
Expand All @@ -15,7 +15,7 @@ test('dynamic isValid', async () => {
period: period,
}
const otp = totp(secret, undefined, opts)
assert.ok(validateTOTP(secret, otp, opts))
assert.ok(isTOTPValid(secret, otp, opts))
})

test('static is valid', async () => {
Expand Down

0 comments on commit 4f7c082

Please sign in to comment.