Files
jsotp/test/otp_test.js
2017-06-29 17:22:55 +08:00

16 lines
389 B
JavaScript

var otp = require('../lib/otp');
var assert = require('assert');
describe('OTP module test', function() {
var a = new otp.OTP("J22U6B3WIWRRBTAV");
console.log(a.generate_otp(49957590));
describe('generate_otp() function', function() {
it("should print '139878'", function() {
assert.equal("139878", a.generate_otp(49957590))
});
});
});