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
|
|
@ -12,7 +12,11 @@ var Script = bitcore.Script;
|
|||
var Builder = bitcore.TransactionBuilder;
|
||||
var util = bitcore.util;
|
||||
var networks = bitcore.networks;
|
||||
var copay = copay || require('../copay');
|
||||
try {
|
||||
var copay = require('copay'); //browser
|
||||
} catch (e) {
|
||||
var copay = require('../copay'); //node
|
||||
}
|
||||
var fakeStorage = copay.FakeStorage;
|
||||
var PrivateKey = copay.PrivateKey || require('../js/models/PrivateKey');
|
||||
var TxProposals = copay.TxProposals || require('../js/models/TxProposal');
|
||||
|
|
@ -126,7 +130,7 @@ describe('TxProposals model', function() {
|
|||
var createTx = function(toAddress, amountSatStr, utxos, opts, priv, pkr) {
|
||||
opts = opts || {};
|
||||
|
||||
var amountSat = bitcore.bignum(amountSatStr);
|
||||
var amountSat = bitcore.Bignum(amountSatStr);
|
||||
|
||||
if (!pkr.isComplete()) {
|
||||
throw new Error('publicKeyRing is not complete');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue