fix browser tests
This commit is contained in:
parent
4e4dd249a8
commit
90cf7e7f77
2 changed files with 9 additions and 2 deletions
2
copay.js
2
copay.js
|
|
@ -10,7 +10,7 @@ var Insight = module.exports.Insight = require('./js/models/blockchain/Insight')
|
||||||
var StorageLocalPlain = module.exports.StorageLocalPlain = require('./js/models/storage/LocalPlain');
|
var StorageLocalPlain = module.exports.StorageLocalPlain = require('./js/models/storage/LocalPlain');
|
||||||
var StorageLocalEncrypted = module.exports.StorageLocalEncrypted = require('./js/models/storage/LocalEncrypted');
|
var StorageLocalEncrypted = module.exports.StorageLocalEncrypted = require('./js/models/storage/LocalEncrypted');
|
||||||
|
|
||||||
var WalletFactory = require('soop').load('./js/models/core/WalletFactory.js',{
|
var WalletFactory = require('soop').load('./js/models/core/WalletFactory',{
|
||||||
Network: WebRTC,
|
Network: WebRTC,
|
||||||
Blockchain: Insight,
|
Blockchain: Insight,
|
||||||
Storage: StorageLocalPlain,
|
Storage: StorageLocalPlain,
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,14 @@ var createBundle = function(opts) {
|
||||||
b.require('./copay', {
|
b.require('./copay', {
|
||||||
expose: 'copay'
|
expose: 'copay'
|
||||||
});
|
});
|
||||||
b.require('./js/models/core/WalletFactory.js');
|
b.require('./js/models/core/WalletFactory');
|
||||||
|
b.require('./js/models/core/Wallet');
|
||||||
|
b.require('./js/models/core/Wallet', {
|
||||||
|
expose: '../js/models/core/Wallet'
|
||||||
|
});
|
||||||
|
b.require('./test/mocks/FakeStorage', {
|
||||||
|
expose: './mocks/FakeStorage'
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
if (!opts.dontminify) {
|
if (!opts.dontminify) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue