mirror of
https://github.com/LanceGin/jsotp.git
synced 2026-04-17 00:01:31 +08:00
15 lines
381 B
JavaScript
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())
|
|
});
|
|
});
|
|
});
|