change name for sin-test

This commit is contained in:
Manuel Araoz 2014-02-17 17:55:56 -03:00
parent 70c47d2943
commit 05bb2ff3df
3 changed files with 31 additions and 7 deletions

View File

@ -13,6 +13,7 @@ module.exports.log = require('./util/log');
module.exports.Opcode = require('./Opcode');
module.exports.util = require('./util/util');
module.exports.Script = require('./Script');
module.exports.SINKey = require('./SINKey');
//module.exports.Transaction = require('./Transaction');

View File

@ -1,7 +0,0 @@
var SINKey = require('./SINKey').class();
var sk = new SINKey();
sk.generate();
console.dir(sk.storeObj());

30
test/test.SIN.js Normal file
View File

@ -0,0 +1,30 @@
'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);
});
});