Add tests for exporting library methods.

This commit is contained in:
Braydon Fuller 2015-10-16 12:02:55 -04:00
parent ffa92bcb8b
commit 2bbdc0345b
1 changed files with 27 additions and 0 deletions

27
test/index.js Normal file
View File

@ -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);
});
});