forked from github/jsotp
upd: otp instance type test
This commit is contained in:
parent
7a4f439ae5
commit
c21f4ea701
@ -14,7 +14,7 @@ describe('HOTP module test', function() {
|
||||
|
||||
describe('verify() function', function() {
|
||||
it("should verify the digit", function() {
|
||||
assert.equal(true, a.verify(a.at(0), 0));
|
||||
assert.equal(true, a.verify(parseInt(a.at(0)), 0));
|
||||
assert.equal(false, a.verify(a.at(0), 1));
|
||||
})
|
||||
});
|
||||
|
@ -14,7 +14,7 @@ describe('TOTP module test', function() {
|
||||
|
||||
describe('verify() function', function() {
|
||||
it("should verify the digit", function() {
|
||||
assert.equal(true, a.verify(a.now()));
|
||||
assert.equal(true, a.verify(parseInt(a.now())));
|
||||
})
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user