UNPKG

bitcore-lib

Version:

A pure and powerful JavaScript Bitcoin library.

17 lines (13 loc) 429 B
"use strict"; var should = require("chai").should(); var bitcore = require("../"); describe('#versionGuard', function() { it('global._bitcore should be defined', function() { should.equal(global._bitcore, bitcore.version); }); it('throw an error if version is already defined', function() { (function() { bitcore.versionGuard('version'); }).should.throw('More than one instance of bitcore'); }); });