Browse Source

Merge pull request #127 from ryanxcharles/bug/fix-node-tests

fix mocha tests
patch-2
Ryan X. Charles 11 years ago
parent
commit
8f3ae30612
  1. 2
      PeerManager.js
  2. 3
      browserify.js

2
PeerManager.js

@ -5,7 +5,7 @@ var log = imports.log || require('./util/log');
var network = imports.network || require('./networks')[config.network];
var Connection = imports.Connection ||
require('soop').load('Connection', {config: config, network: network}) ||
require('soop').load('./Connection', {config: config, network: network}) ||
require ('./Connection');
var Peer = imports.Peer || require('./Peer');

3
browserify.js

@ -32,7 +32,6 @@ var modules = [
'Block',
'Bloom',
'Buffers.monkey',
'Connection',
'Deserialize',
'Gruntfile',
'Number.monkey',
@ -69,6 +68,8 @@ b.add('./browser/bignum_config.js');
b.require('./test/testdata.js', {expose: './testdata'});
b.transform('brfs');
b.require('./Connection', {expose: './Connection'});
modules.forEach(function(m) {
b.require('./' + m + '.js' ,{expose:m} );
});

Loading…
Cancel
Save