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
664 B
25 lines
664 B
'use strict';
|
|
|
|
var should = require('chai').should();
|
|
var bitcore = require('..');
|
|
var Networks = bitcore.Networks;
|
|
|
|
describe('Networks', function() {
|
|
|
|
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() {
|
|
var makeTest = function(key) {
|
|
Networks.testnet.hasOwnProperty(key).should.equal(true);
|
|
};
|
|
for (var key in Networks.livenet) {
|
|
if (Networks.livenet.hasOwnProperty(key)) {
|
|
it('all should contain ' + key, makeTest(key));
|
|
}
|
|
}
|
|
});
|
|
|
|
});
|
|
|