Fix tests: Allow single files to be run
This commit is contained in:
parent
a3377a5579
commit
41198ff031
21 changed files with 21 additions and 32 deletions
16
setup/node.js
Normal file
16
setup/node.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
global.chai = require('chai');
|
||||
global.sinon = require('sinon');
|
||||
global.bitcore = require('bitcore');
|
||||
global.expect = global.chai.expect;
|
||||
global.bignum = global.bitcore.Bignum;
|
||||
global.should = global.chai.should();
|
||||
|
||||
global.copay = require('../copay');
|
||||
global.copayConfig = require('../config');
|
||||
|
||||
global.requireMock = function(name) {
|
||||
return require('../test/mocks/' + name);
|
||||
}
|
||||
|
||||
global.is_browser = typeof process == 'undefined' || typeof process.versions === 'undefined';
|
||||
global._ = require('underscore');
|
||||
Loading…
Add table
Add a link
Reference in a new issue