UNPKG

mcore-lib-matrixbit

Version:

A pure and powerful JavaScript Bitcoin Cash library.

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