fcash-p2p
Version:
Interface to the bitcoin P2P network for fcash
31 lines (23 loc) • 651 B
JavaScript
;
var should = require('chai').should();
var P2P = require('../../');
var builder = P2P.Messages.builder;
var fcash = require('fcash-lib');
describe('Messages Builder', function() {
describe('@constructor', function() {
it('should return commands based on default', function() {
// instantiate
var b = builder();
should.exist(b);
});
it('should return commands with customizations', function() {
// instantiate
var b = builder({
network: fcash.Networks.testnet,
Block: fcash.Block,
Transaction: fcash.Transaction
});
should.exist(b);
});
});
});