Skip to content

Commit

Permalink
Merge pull request #442 from braydonf/export-lib
Browse files Browse the repository at this point in the history
index: export bitcore-lib as lib
  • Loading branch information
kleetus committed Jun 13, 2016
2 parents be8a5c7 + d31438b commit 4a220d8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -23,3 +23,5 @@ module.exports.cli.main = require('./lib/cli/main');
module.exports.cli.daemon = require('./lib/cli/daemon');
module.exports.cli.bitcore = require('./lib/cli/bitcore');
module.exports.cli.bitcored = require('./lib/cli/bitcored');

module.exports.lib = require('bitcore-lib');
12 changes: 12 additions & 0 deletions test/index.unit.js
@@ -0,0 +1,12 @@
'use strict';

var should = require('chai').should();

describe('Index Exports', function() {
it('will export bitcore-lib', function() {
var bitcore = require('../');
should.exist(bitcore.lib);
should.exist(bitcore.lib.Transaction);
should.exist(bitcore.lib.Block);
});
});

0 comments on commit 4a220d8

Please sign in to comment.