performance test fix for browser
This commit is contained in:
parent
5847d6aff2
commit
6d822a9153
2 changed files with 9 additions and 12 deletions
|
|
@ -3,18 +3,6 @@
|
|||
var chai = chai || require('chai');
|
||||
var should = chai.should();
|
||||
|
||||
var WebRTC = require('../js/models/network/WebRTC');
|
||||
var Insight = require('../js/models/blockchain/Insight');
|
||||
var FakeStorage = require('./mocks/FakeStorage');
|
||||
var PrivateKey = require('../js/models/core/PrivateKey');
|
||||
|
||||
var WalletFactory = typeof copay === 'undefined' ? require('soop').load('../js/models/core/WalletFactory',{
|
||||
Network: WebRTC,
|
||||
Blockchain: Insight,
|
||||
Storage: FakeStorage,
|
||||
}) : copay.WalletFactory;
|
||||
|
||||
|
||||
describe('Performance tests', function() {
|
||||
var config = {
|
||||
wallet: {
|
||||
|
|
|
|||
|
|
@ -50,6 +50,15 @@ var createBundle = function(opts) {
|
|||
b.require('./test/mocks/FakeStorage', {
|
||||
expose: './mocks/FakeStorage'
|
||||
});
|
||||
b.require('./js/models/network/WebRTC', {
|
||||
expose: '../js/models/network/WebRTC'
|
||||
});
|
||||
b.require('./js/models/blockchain/Insight', {
|
||||
expose: '../js/models/blockchain/Insight'
|
||||
});
|
||||
b.require('./js/models/core/PrivateKey', {
|
||||
expose: '../js/models/core/PrivateKey'
|
||||
});
|
||||
|
||||
|
||||
if (!opts.dontminify) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue