mirror of
https://github.com/LanceGin/jsotp.git
synced 2026-04-17 00:01:31 +08:00
21 lines
524 B
JavaScript
21 lines
524 B
JavaScript
var hotp = require('../lib/hotp');
|
|
var assert = require('assert');
|
|
|
|
describe('HOTP module test', function() {
|
|
|
|
var HOTP = hotp.HOTP;
|
|
var a = new HOTP("BASE32_ENCODED_SECRET");
|
|
|
|
describe('at() function', function() {
|
|
it("should print 'HOTP.at'", function() {
|
|
assert.equal("HOTP.at", a.at());
|
|
});
|
|
});
|
|
|
|
describe('verify() function', function() {
|
|
it("should print 'HOTP.verify'", function() {
|
|
assert.equal("HOTP.verify", a.verify());
|
|
})
|
|
})
|
|
});
|