fix browser tests

This commit is contained in:
Manuel Araoz 2014-04-16 21:39:42 -03:00
parent 4e4dd249a8
commit 90cf7e7f77
2 changed files with 9 additions and 2 deletions

View File

@ -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 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,
Blockchain: Insight,
Storage: StorageLocalPlain,

View File

@ -42,7 +42,14 @@ var createBundle = function(opts) {
b.require('./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) {