Merge pull request #72 from maraoz/fix/browser-API-tests

fix browser tests
This commit is contained in:
Ryan X. Charles 2014-04-16 21:43:17 -03:00
commit 73db414dd7
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) {