Merge pull request #204 from ryanxcharles/feature/fix-browser-tests-for-point-and-key
fix browser tests for Point and Key
This commit is contained in:
commit
c88f465e45
|
@ -28,6 +28,7 @@
|
|||
<script src="test.Opcode.js"></script>
|
||||
<script src="test.Peer.js"></script>
|
||||
<script src="test.PeerManager.js"></script>
|
||||
<script src="test.Point.js"></script>
|
||||
<script src="test.PrivateKey.js"></script>
|
||||
<script src="test.RpcClient.js"></script>
|
||||
<script src="test.Script.js"></script>
|
||||
|
|
|
@ -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() {
|
|||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
'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 bignum = require('bignum');
|
||||
|
||||
var should = chai.should();
|
||||
var assert = chai.assert;
|
||||
|
||||
var Point = bitcore.Point;
|
||||
var Key = bitcore.Key;
|
||||
|
|
Loading…
Reference in New Issue