reorder tests
This commit is contained in:
parent
a9d029341d
commit
f0a4aebdfb
2
index.js
2
index.js
@ -6,6 +6,7 @@ bitcore.Base58 = require('./lib/protocol/base58');
|
|||||||
bitcore.Base58Check = require('./lib/protocol/base58check');
|
bitcore.Base58Check = require('./lib/protocol/base58check');
|
||||||
bitcore.BufferReader = require('./lib/protocol/bufferreader');
|
bitcore.BufferReader = require('./lib/protocol/bufferreader');
|
||||||
bitcore.BufferWriter = require('./lib/protocol/bufferwriter');
|
bitcore.BufferWriter = require('./lib/protocol/bufferwriter');
|
||||||
|
bitcore.Varint = require('./lib/protocol/varint');
|
||||||
|
|
||||||
// crypto
|
// crypto
|
||||||
bitcore.BN = require('./lib/crypto/bn');
|
bitcore.BN = require('./lib/crypto/bn');
|
||||||
@ -29,7 +30,6 @@ bitcore.Signature = require('./lib/signature');
|
|||||||
bitcore.Transaction = require('./lib/transaction');
|
bitcore.Transaction = require('./lib/transaction');
|
||||||
bitcore.Txin = require('./lib/txin');
|
bitcore.Txin = require('./lib/txin');
|
||||||
bitcore.Txout = require('./lib/txout');
|
bitcore.Txout = require('./lib/txout');
|
||||||
bitcore.Varint = require('./lib/varint');
|
|
||||||
|
|
||||||
|
|
||||||
//dependencies, subject to change
|
//dependencies, subject to change
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
var BN = require('./bn');
|
var BN = require('./bn');
|
||||||
var Point = require('./point');
|
var Point = require('./point');
|
||||||
var Signature = require('./signature');
|
|
||||||
var Keypair = require('./keypair');
|
|
||||||
var Pubkey = require('./pubkey');
|
|
||||||
var Random = require('./random');
|
var Random = require('./random');
|
||||||
|
var Pubkey = require('../pubkey');
|
||||||
|
var Keypair = require('../keypair');
|
||||||
|
var Signature = require('../signature');
|
||||||
|
|
||||||
var ECDSA = function ECDSA(obj) {
|
var ECDSA = function ECDSA(obj) {
|
||||||
if (!(this instanceof ECDSA))
|
if (!(this instanceof ECDSA))
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var Bn = require('./bn');
|
var Bn = require('./bn');
|
||||||
var Privkey = require('./privkey');
|
|
||||||
var Point = require('./point');
|
var Point = require('./point');
|
||||||
var Keypair = require('./keypair');
|
|
||||||
var Hash = require('./hash');
|
var Hash = require('./hash');
|
||||||
|
var Privkey = require('../privkey');
|
||||||
|
var Keypair = require('../keypair');
|
||||||
|
|
||||||
function KDF() {
|
function KDF() {
|
||||||
};
|
}
|
||||||
|
|
||||||
KDF.buf2keypair = function(buf) {
|
KDF.buf2keypair = function(buf) {
|
||||||
return KDF.sha256hmac2keypair(buf);
|
return KDF.sha256hmac2keypair(buf);
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
var BufferWriter = require('./protocol/bufferwriter');
|
var BufferWriter = require('./protocol/bufferwriter');
|
||||||
var BufferReader = require('./protocol/bufferreader');
|
var BufferReader = require('./protocol/bufferreader');
|
||||||
var Varint = require('./protocol/varint');
|
var Varint = require('./protocol/varint');
|
||||||
var Hash = require('./cryptohash');
|
var Hash = require('./crypto/hash');
|
||||||
var Txin = require('./txin');
|
var Txin = require('./txin');
|
||||||
var Txout = require('./txout');
|
var Txout = require('./txout');
|
||||||
|
|
||||||
|
|||||||
18
test/protocol/constants.js
Normal file
18
test/protocol/constants.js
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
var should = require('chai').should();
|
||||||
|
var bitcore = require('../../');
|
||||||
|
var constants = bitcore.Constants;
|
||||||
|
|
||||||
|
describe('Constants', function() {
|
||||||
|
|
||||||
|
it('should contain all constants for livenet and testnet', function() {
|
||||||
|
for (var key in constants.livenet) {
|
||||||
|
if (constants.livenet.hasOwnProperty(key)) {
|
||||||
|
constants.testnet.hasOwnProperty(key).should.equal(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
Loading…
Reference in New Issue
Block a user