|
|
@ -1,12 +1,11 @@ |
|
|
|
'use strict'; |
|
|
|
|
|
|
|
var assert = require('assert'); |
|
|
|
var chai = chai || require('chai'); |
|
|
|
var bitcore = bitcore || require('../bitcore'); |
|
|
|
var coinUtil = coinUtil || require('../util/util'); |
|
|
|
var coinUtil = coinUtil || bitcore.util; |
|
|
|
var buffertools = require('buffertools'); |
|
|
|
|
|
|
|
var should = chai.should(); |
|
|
|
var assert = chai.assert; |
|
|
|
|
|
|
|
var Key = bitcore.Key; |
|
|
|
describe('Key', function() { |
|
|
@ -115,6 +114,10 @@ describe('Key', function() { |
|
|
|
ret.should.equal(false); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//node tests only
|
|
|
|
//addUncompressed is a node-only interface feature
|
|
|
|
if (typeof process !== 'undefined' && process.versions) { |
|
|
|
describe('#addUncompressed', function() { |
|
|
|
it('should exist', function() { |
|
|
|
should.exist(Key.addUncompressed); |
|
|
@ -162,5 +165,6 @@ describe('Key', function() { |
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|