add doc version test
This commit is contained in:
parent
fcd89b8dd7
commit
b23d0bc7c9
18
test/docs.js
Normal file
18
test/docs.js
Normal 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".');
|
||||||
|
});
|
||||||
|
});
|
||||||
Loading…
Reference in New Issue
Block a user