Browse Source

add doc version test

patch-2
Manuel Araoz 10 years ago
parent
commit
b23d0bc7c9
  1. 18
      test/docs.js

18
test/docs.js

@ -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…
Cancel
Save