bitcore/test/test.WalletKey.js

32 lines
617 B
JavaScript
Raw Normal View History

2014-02-19 11:07:50 -08:00
'use strict';
var chai = require('chai');
var bitcore = require('../bitcore');
var should = chai.should();
var WalletKeyModule = bitcore.WalletKey;
var networks = bitcore.networks;
var WalletKey;
describe('WalletKey', function() {
it('should initialze the main object', function() {
should.exist(WalletKeyModule);
});
it('should be able to create class', function() {
WalletKey = WalletKeyModule.class();
should.exist(WalletKey);
});
it('should be able to create instance', function() {
var s = new WalletKey({
network: networks.livenet
});
should.exist(s);
});
});