mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 09:12:05 -07:00
Fixed integration test for gettxout
This commit is contained in:
@@ -840,11 +840,12 @@ describe("#BlockchainRouter", () => {
|
||||
.reply(200, { result: mockData.mockTxOut })
|
||||
}
|
||||
|
||||
req.params.txid = `2c7ae9f865f7ce0c33c189b2f83414176903ce4b06ed9f8b7bcf55efbd4a7266`
|
||||
req.params.txid = `197dcda59864b1eee05498fd3c52cad787ec56ab7e635503cb39f9ab6f295d5d`
|
||||
req.params.n = 1
|
||||
req.query.include_mempool = "true"
|
||||
|
||||
const result = await getTxOut(req, res)
|
||||
//console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
||||
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
||||
|
||||
assert.hasAllKeys(result, [
|
||||
"bestblock",
|
||||
|
||||
Reference in New Issue
Block a user