mirror of
https://github.com/LanceGin/jsotp.git
synced 2024-10-06 06:22:08 +08:00
upd: test files
This commit is contained in:
parent
a4c54305fb
commit
5a82eb6db6
19
test/b32_test.js
Normal file
19
test/b32_test.js
Normal file
@ -0,0 +1,19 @@
|
||||
var b32 = require('../lib/base32');
|
||||
var assert = require('assert');
|
||||
|
||||
describe('Base32 module test', function() {
|
||||
|
||||
var a = b32.Base32;
|
||||
|
||||
describe('static decode() function', function() {
|
||||
it("should print 'static Base32.decode'", function() {
|
||||
assert.equal("static Base32.decode", a.decode());
|
||||
});
|
||||
});
|
||||
|
||||
describe('static random_gen() function', function() {
|
||||
it("should print 'static Base32.random_gen'", function() {
|
||||
assert.equal("static Base32.random_gen", a.random_gen());
|
||||
})
|
||||
})
|
||||
});
|
Loading…
Reference in New Issue
Block a user