fix all tests with sync working
This commit is contained in:
parent
80279a0c6e
commit
9d4d06dc6c
@ -23,7 +23,8 @@ describe('BitcoreHTTP v1 transactions routes', function() {
|
|||||||
var nodeMock, app, agent;
|
var nodeMock, app, agent;
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
nodeMock = new EventEmitter();
|
nodeMock = new EventEmitter();
|
||||||
nodeMock.getTransaction = function(txHash) {
|
nodeMock.transactionService = {};
|
||||||
|
nodeMock.transactionService.getTransaction = function(txHash) {
|
||||||
var tx = mockTransactions[txHash];
|
var tx = mockTransactions[txHash];
|
||||||
if (_.isUndefined(tx)) {
|
if (_.isUndefined(tx)) {
|
||||||
return Promise.reject(new BitcoreNode.errors.Transactions.NotFound(txHash));
|
return Promise.reject(new BitcoreNode.errors.Transactions.NotFound(txHash));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user