fix all tests with sync working

This commit is contained in:
Manuel Araoz 2015-04-15 11:21:44 -03:00
parent 80279a0c6e
commit 9d4d06dc6c

View File

@ -23,7 +23,8 @@ describe('BitcoreHTTP v1 transactions routes', function() {
var nodeMock, app, agent;
beforeEach(function() {
nodeMock = new EventEmitter();
nodeMock.getTransaction = function(txHash) {
nodeMock.transactionService = {};
nodeMock.transactionService.getTransaction = function(txHash) {
var tx = mockTransactions[txHash];
if (_.isUndefined(tx)) {
return Promise.reject(new BitcoreNode.errors.Transactions.NotFound(txHash));