upd: otp instance type test

This commit is contained in:
Gin 2018-11-06 11:24:34 +08:00
parent 7a4f439ae5
commit c21f4ea701
2 changed files with 2 additions and 2 deletions

View File

@ -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));
})
});

View File

@ -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())));
})
});