test: fix wallet test if copay is in ./node_modules.

This commit is contained in:
Christopher Jeffrey 2014-07-28 18:36:20 -07:00 committed by Manuel Araoz
parent b18c9e3cd5
commit 58b9345f59
1 changed files with 3 additions and 2 deletions

View File

@ -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');