Commit be81adcc21ea131b956c897a4be9faa4bc9aba1a
1 parent
8e7aae966a
Exists in
master
mocha test
Showing 3 changed files with 14 additions and 0 deletions Side-by-side Diff
package.json
partner-trustlink.js
test.js
... | ... | @@ -0,0 +1,10 @@ |
1 | +var should = require("should"); | |
2 | +var partner = require("./partner-trustlink"); | |
3 | + | |
4 | +describe('#partner-trustlink', function() { | |
5 | + describe('#calculateSignature', function() { | |
6 | + it('should return correct signature', function() { | |
7 | + partner.calculateSignature('191001', '0812345678', 'abcdef').should.equal('CQ4HBVFTVlJSXg=='); | |
8 | + }); | |
9 | + }); | |
10 | +}); |