mirror of
https://github.com/LanceGin/jsotp.git
synced 2026-01-26 00:00:18 +08:00
add: otp class test
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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())
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user