Browserify Bloom
This commit is contained in:
parent
57c4c20c72
commit
ed90a2ebe6
|
@ -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') {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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…
Reference in New Issue