flocore-p2p/test/messages/builder.js
2017-09-26 14:05:20 -04:00

31 lines
666 B
JavaScript

'use strict';
var should = require('chai').should();
var P2P = require('../../');
var builder = P2P.Messages.builder;
var bitcore = require('bitcore-lib-cash');
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: bitcore.Networks.testnet,
Block: bitcore.Block,
Transaction: bitcore.Transaction
});
should.exist(b);
});
});
});