You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
633 B

10 years ago
'use strict';
var should = require('chai').should();
var bitcore = require('..');
var networks = bitcore.networks;
10 years ago
describe('networks', function() {
10 years ago
it('should contain all networks', function() {
should.exist(networks.livenet);
should.exist(networks.testnet);
should.exist(networks.mainnet);
});
describe('contain all constants for livenet and testnet', function() {
for (var key in networks.livenet) {
if (networks.livenet.hasOwnProperty(key)) {
it('all should contain '+key, function() {
networks.testnet.hasOwnProperty(key).should.equal(true);
});
10 years ago
}
}
});
});