diff --git a/test/totp_test.js b/test/totp_test.js index e69de29..573f44a 100644 --- a/test/totp_test.js +++ b/test/totp_test.js @@ -0,0 +1,20 @@ +var totp = require('../lib/totp'); +var assert = require('assert'); + +describe('TOTP module test', function() { + + var TOTP = totp.TOTP; + var a = new TOTP("BASE32_ENCODED_SECRET"); + + describe('now() function', function() { + it("should print 'TOTP.now'", function() { + assert.equal("TOTP.now", a.now()); + }); + }); + + describe('verify() function', function() { + it("should print 'TOTP.verify'", function() { + assert.equal("TOTP.verify", a.verify()); + }) + }) +});