Browse Source

fix browser tests

patch-2
Manuel Araoz 11 years ago
parent
commit
18630bb2b1
  1. 1
      bitcore.js
  2. 3
      browser/build.js
  3. 1
      test/index.html

1
bitcore.js

@ -12,6 +12,7 @@ var requireWhenAccessed = function(name, file) {
requireWhenAccessed('bignum', 'bignum');
requireWhenAccessed('base58', 'base58-native');
requireWhenAccessed('bufferput', 'bufferput');
requireWhenAccessed('buffertools', 'buffertools');
requireWhenAccessed('config', './config');
requireWhenAccessed('const', './const');

3
browser/build.js

@ -89,6 +89,9 @@ var createBitcore = function(opts) {
b.require(opts.dir + 'browserify-buffertools/buffertools.js', {
expose: 'buffertools'
});
b.require(opts.dir + 'bufferput', {
expose: 'bufferput'
});
b.require(opts.dir + 'base58-native', {
expose: 'base58-native'
});

1
test/index.html

@ -31,6 +31,7 @@
<script src="test.RpcClient.js"></script>
<script src="test.Script.js"></script>
<script src="test.ScriptInterpreter.js"></script>
<script src="test.sighash.js"></script>
<script src="test.SIN.js"></script>
<script src="test.SINKey.js"></script>
<script src="test.Transaction.js"></script>

Loading…
Cancel
Save