fix(bch): Moved bch use-cases to adapters

This commit is contained in:
Chris Troutner
2021-11-30 18:18:56 -08:00
parent fc3a2fe57f
commit 766826d86e
7 changed files with 58 additions and 35 deletions
@@ -79,7 +79,7 @@ describe('#BCH-REST-Controller', () => {
try {
// Force an error
sandbox
.stub(uut.useCases.bch, 'getStatus')
.stub(uut.adapters.bch, 'getStatus')
.rejects(new Error('test error'))
await uut.getStatus(ctx)
@@ -93,7 +93,7 @@ describe('#BCH-REST-Controller', () => {
})
it('should return 200 status on success', async () => {
sandbox.stub(uut.useCases.bch, 'getStatus').resolves('bch')
sandbox.stub(uut.adapters.bch, 'getStatus').resolves('bch')
await uut.getStatus(ctx)
@@ -110,7 +110,7 @@ describe('#BCH-REST-Controller', () => {
try {
// Force an error
sandbox
.stub(uut.useCases.bch, 'getBalances')
.stub(uut.adapters.bch, 'getBalances')
.rejects(new Error('test error'))
ctx.request.body = {
@@ -128,7 +128,7 @@ describe('#BCH-REST-Controller', () => {
})
it('should return 200 status on success', async () => {
sandbox.stub(uut.useCases.bch, 'getBalances').resolves({ status: 200 })
sandbox.stub(uut.adapters.bch, 'getBalances').resolves({ status: 200 })
ctx.request.body = {
addresses: 'blah'