31 lines
661 B
JavaScript
31 lines
661 B
JavaScript
'use strict';
|
|
|
|
|
|
|
|
var chai = require('chai');
|
|
var bitcore = require('../bitcore');
|
|
|
|
var should = chai.should();
|
|
|
|
var SINKeyModule = bitcore.SINKey;
|
|
var SINKey;
|
|
|
|
|
|
describe('SINKey', function() {
|
|
it('should initialze the main object', function() {
|
|
should.exist(SINKeyModule);
|
|
});
|
|
it('should be able to create class', function() {
|
|
SINKey = SINKeyModule.class();
|
|
should.exist(SINKey);
|
|
});
|
|
it('should be able to create instance', function() {
|
|
var sk = new SINKey();
|
|
sk.generate();
|
|
should.exist(sk.created);
|
|
should.exist(sk.privKey.private);
|
|
should.exist(sk.privKey.public);
|
|
should.exist(sk.privKey.compressed);
|
|
});
|
|
});
|