diff --git a/src/controllers/rest-api/bch/controller.js b/src/controllers/rest-api/bch/controller.js index a0dba62..def217f 100644 --- a/src/controllers/rest-api/bch/controller.js +++ b/src/controllers/rest-api/bch/controller.js @@ -326,8 +326,8 @@ class BchRESTControllerLib { */ async txHistory (ctx) { try { - console.log('transactions REST API handler called.') - console.log(`body: ${JSON.stringify(ctx.request.body, null, 2)}`) + // console.log('transactions REST API handler called.') + // console.log(`body: ${JSON.stringify(ctx.request.body, null, 2)}`) const addr = ctx.request.body.address const sortOrder = ctx.request.body.sortOrder diff --git a/test/unit/controllers/rest-api/bch/bch.rest.controller.unit.js b/test/unit/controllers/rest-api/bch/bch.rest.controller.unit.js index 6544555..3a509e3 100644 --- a/test/unit/controllers/rest-api/bch/bch.rest.controller.unit.js +++ b/test/unit/controllers/rest-api/bch/bch.rest.controller.unit.js @@ -213,7 +213,7 @@ describe('#BCH-REST-Controller', () => { }) }) - describe('#transactions', () => { + describe('#txHistory', () => { it('should return 422 status on arbitrary error', async () => { try { // Force an error @@ -225,7 +225,7 @@ describe('#BCH-REST-Controller', () => { address: 'blah' } - await uut.transactions(ctx) + await uut.txHistory(ctx) assert.fail('Unexpected result') } catch (err) { @@ -242,14 +242,14 @@ describe('#BCH-REST-Controller', () => { address: 'blah' } - await uut.transactions(ctx) + await uut.txHistory(ctx) // Assert the expected HTTP response assert.equal(ctx.status, 200) }) }) - describe('#transaction', () => { + describe('#txData', () => { it('should return 422 status on arbitrary error', async () => { try { // Force an error @@ -261,7 +261,7 @@ describe('#BCH-REST-Controller', () => { txid: 'blah' } - await uut.transaction(ctx) + await uut.txData(ctx) assert.fail('Unexpected result') } catch (err) { @@ -280,7 +280,7 @@ describe('#BCH-REST-Controller', () => { txid: 'blah' } - await uut.transaction(ctx) + await uut.txData(ctx) // Assert the expected HTTP response assert.equal(ctx.status, 200)