You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

16 lines
418 B

'use strict';
var should = require('chai').should();
var bch = require('..');
describe('#versionGuard', function() {
it('global._bitcore should be defined', function() {
should.equal(global._bch, bch.version);
});
it('throw an error if version is already defined', function() {
(function() {
bch.versionGuard('version');
}).should.throw('More than one instance of bitcoincashjs');
});
});