Braydon Fuller
10 years ago
2 changed files with 28 additions and 19 deletions
@ -0,0 +1,16 @@ |
|||
'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'); |
|||
}); |
|||
}); |
Loading…
Reference in new issue