bitcore/test/test.SINKey.js

28 lines
669 B
JavaScript

'use strict';
var chai = chai || require('chai');
var bitcore = 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;
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);
});
});