add doc version test

This commit is contained in:
Manuel Araoz 2015-02-12 10:39:27 -03:00
parent fcd89b8dd7
commit b23d0bc7c9
1 changed files with 18 additions and 0 deletions

18
test/docs.js Normal file
View File

@ -0,0 +1,18 @@
'use strict';
/* jshint maxstatements: 30 */
var chai = require('chai');
var should = chai.should();
var expect = chai.expect;
var bitcore = require('..');
describe('Address', function() {
it('should throw an error because of bad network param', function() {
(function(){
return new Address(PKHLivenet[0], 'main', 'pubkeyhash');
}).should.throw('Second argument must be "livenet" or "testnet".');
});
});