Browse Source

Browserify Bloom

patch-2
Manuel Araoz 11 years ago
parent
commit
ed90a2ebe6
  1. 1
      bitcore.js
  2. 1
      test/index.html
  3. 28
      test/test.Bloom.js

1
bitcore.js

@ -20,6 +20,7 @@ module.exports.Peer = require('./Peer');
module.exports.Block = require('./Block');
module.exports.Connection = require('./Connection');
module.exports.ScriptInterpreter = require('./ScriptInterpreter');
module.exports.Bloom = require('./Bloom');
if (typeof process.versions === 'undefined') {

1
test/index.html

@ -27,6 +27,7 @@
<script src="test.Block.js"></script>
<script src="test.Connection.js"></script>
<script src="test.ScriptInterpreter.js"></script>
<script src="test.Bloom.js"></script>
<script src="test.misc.js"></script>
<script>
mocha.run();

28
test/test.Bloom.js

@ -0,0 +1,28 @@
'use strict';
var chai = require('chai');
var bitcore = require('../bitcore');
var should = chai.should();
var BloomModule = bitcore.Script;
var Bloom;
describe('Bloom', function() {
it('should initialze the main object', function() {
should.exist(BloomModule);
});
it('should be able to create class', function() {
Bloom = BloomModule.class();
should.exist(Bloom);
});
it('should be able to create instance', function() {
var s = new Bloom();
should.exist(s);
});
});
Loading…
Cancel
Save