mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-consumer.git
synced 2026-09-21 16:52:03 -07:00
linting
This commit is contained in:
@@ -407,7 +407,7 @@ describe('#IPFS REST API', () => {
|
|||||||
sandbox.stub(uut.adapters.ipfsFiles, 'getPins').throws(new Error('test error'))
|
sandbox.stub(uut.adapters.ipfsFiles, 'getPins').throws(new Error('test error'))
|
||||||
|
|
||||||
ctx.request.body = {}
|
ctx.request.body = {}
|
||||||
ctx.params = { page: 1}
|
ctx.params = { page: 1 }
|
||||||
|
|
||||||
await uut.getPins(ctx)
|
await uut.getPins(ctx)
|
||||||
|
|
||||||
@@ -423,14 +423,14 @@ describe('#IPFS REST API', () => {
|
|||||||
sandbox.stub(uut.adapters.ipfsFiles, 'getPins').resolves({ success: true })
|
sandbox.stub(uut.adapters.ipfsFiles, 'getPins').resolves({ success: true })
|
||||||
|
|
||||||
ctx.request.body = {}
|
ctx.request.body = {}
|
||||||
ctx.params = { page: 1}
|
ctx.params = { page: 1 }
|
||||||
|
|
||||||
await uut.getPins(ctx)
|
await uut.getPins(ctx)
|
||||||
|
|
||||||
assert.isTrue(ctx.body.success)
|
assert.isTrue(ctx.body.success)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('#cid2json', () => {
|
describe('#cid2json', () => {
|
||||||
it('should return 422 status on biz logic error', async () => {
|
it('should return 422 status on biz logic error', async () => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user