From 2bbdc0345b439b7a782eaa5185d6b1d7c4177d1a Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Fri, 16 Oct 2015 12:02:55 -0400 Subject: [PATCH] Add tests for exporting library methods. --- test/index.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/index.js diff --git a/test/index.js b/test/index.js new file mode 100644 index 000000000..375244fde --- /dev/null +++ b/test/index.js @@ -0,0 +1,27 @@ +'use strict'; + +var should = require('chai').should(); +var bitcore = require('../'); + +describe('Library', function() { + it('should export primatives', function() { + should.exist(bitcore.crypto); + should.exist(bitcore.encoding); + should.exist(bitcore.util); + should.exist(bitcore.errors); + should.exist(bitcore.Address); + should.exist(bitcore.Block); + should.exist(bitcore.MerkleBlock); + should.exist(bitcore.BlockHeader); + should.exist(bitcore.HDPrivateKey); + should.exist(bitcore.HDPublicKey); + should.exist(bitcore.Networks); + should.exist(bitcore.Opcode); + should.exist(bitcore.PrivateKey); + should.exist(bitcore.PublicKey); + should.exist(bitcore.Script); + should.exist(bitcore.Transaction); + should.exist(bitcore.URI); + should.exist(bitcore.Unit); + }); +});