|
@ -4,16 +4,11 @@ var chai = chai || require('chai'); |
|
|
var bitcore = bitcore || require('../bitcore'); |
|
|
var bitcore = bitcore || require('../bitcore'); |
|
|
var should = chai.should(); |
|
|
var should = chai.should(); |
|
|
|
|
|
|
|
|
var SINKeyModule = bitcore.SINKey; |
|
|
var SINKey = bitcore.SINKey; |
|
|
var SINKey; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
describe('SINKey', function() { |
|
|
describe('SINKey', function() { |
|
|
it('should initialze the main object', function() { |
|
|
it('should initialze the main object', function() { |
|
|
should.exist(SINKeyModule); |
|
|
|
|
|
}); |
|
|
|
|
|
it('should be able to create class', function() { |
|
|
|
|
|
SINKey = SINKeyModule; |
|
|
|
|
|
should.exist(SINKey); |
|
|
should.exist(SINKey); |
|
|
}); |
|
|
}); |
|
|
it('should be able to create instance', function() { |
|
|
it('should be able to create instance', function() { |
|
@ -24,4 +19,13 @@ describe('SINKey', function() { |
|
|
should.exist(sk.privKey.public); |
|
|
should.exist(sk.privKey.public); |
|
|
should.exist(sk.privKey.compressed); |
|
|
should.exist(sk.privKey.compressed); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
describe('#storeObj', function() { |
|
|
|
|
|
it('should give an object', function() { |
|
|
|
|
|
var sinkey = new SINKey(); |
|
|
|
|
|
sinkey.generate(); |
|
|
|
|
|
var obj = sinkey.storeObj(); |
|
|
|
|
|
should.exist(obj); |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
}); |
|
|
}); |
|
|