33 changed files with 108 additions and 103 deletions
@ -0,0 +1,24 @@ |
|||
'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() { |
|||
for (var key in Networks.livenet) { |
|||
if (Networks.livenet.hasOwnProperty(key)) { |
|||
it('all should contain '+key, function() { |
|||
Networks.testnet.hasOwnProperty(key).should.equal(true); |
|||
}); |
|||
} |
|||
} |
|||
}); |
|||
|
|||
}); |
@ -1,18 +0,0 @@ |
|||
'use strict'; |
|||
|
|||
var should = require('chai').should(); |
|||
var bitcore = require('../../'); |
|||
var constants = bitcore.Constants; |
|||
|
|||
describe('Constants', function() { |
|||
|
|||
it('should contain all constants for livenet and testnet', function() { |
|||
for (var key in constants.livenet) { |
|||
if (constants.livenet.hasOwnProperty(key)) { |
|||
constants.testnet.hasOwnProperty(key).should.equal(true); |
|||
} |
|||
} |
|||
|
|||
}); |
|||
|
|||
}); |
Loading…
Reference in new issue