mirror of https://github.com/BTCPrivate/copay.git
test: fix wallet test if copay is in ./node_modules.
This commit is contained in:
parent
b18c9e3cd5
commit
58b9345f59
|
@ -3,9 +3,10 @@
|
|||
var chai = chai || require('chai');
|
||||
var should = chai.should();
|
||||
var sinon = require('sinon');
|
||||
try {
|
||||
var is_browser = (typeof process == 'undefined' || typeof process.versions === 'undefined');
|
||||
if (is_browser) {
|
||||
var copay = require('copay'); //browser
|
||||
} catch (e) {
|
||||
} else {
|
||||
var copay = require('../copay'); //node
|
||||
}
|
||||
var copayConfig = require('../config');
|
||||
|
|
Loading…
Reference in New Issue