make mocha browser tests all run with no console errors

...except Wallet and WalletFactory.
This commit is contained in:
Ryan X. Charles 2014-06-15 20:55:23 -07:00
commit f7e34acae8
14 changed files with 85 additions and 39 deletions

View file

@ -7,11 +7,15 @@ var Transaction = bitcore.Transaction;
var buffertools = bitcore.buffertools;
var WalletKey = bitcore.WalletKey;
var Key = bitcore.Key;
var bignum = bitcore.bignum;
var bignum = bitcore.Bignum;
var networks = bitcore.networks;
var Address = bitcore.Address;
var BitcorePrivateKey = bitcore.PrivateKey;
var copay = copay || require('../copay');
try {
var copay = require('copay'); //browser
} catch (e) {
var copay = require('../copay'); //node
}
var PrivateKey = copay.PrivateKey || require('../js/models/core/PrivateKey');
var config = {