make mocha browser tests all run with no console errors
...except Wallet and WalletFactory.
This commit is contained in:
parent
9e79e58c35
commit
f7e34acae8
14 changed files with 85 additions and 39 deletions
|
|
@ -2,7 +2,11 @@
|
|||
|
||||
var chai = chai || require('chai');
|
||||
var should = chai.should();
|
||||
var copay = copay || require('../copay');
|
||||
try {
|
||||
var copay = require('copay'); //browser
|
||||
} catch (e) {
|
||||
var copay = require('../copay'); //node
|
||||
}
|
||||
var API = API || copay.API;
|
||||
var Storage = Storage || require('../test/mocks/FakeStorage');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue