Files
jsotp/test/otp_test.js
T
2017-06-29 14:52:22 +08:00

15 lines
381 B
JavaScript

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