mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
feat(slp): Updated balance endpoints for SLPDB v1
This commit is contained in:
+5
-2
@@ -975,7 +975,7 @@ describe('#SLP', () => {
|
||||
nock(`${process.env.SLPDB_URL}`)
|
||||
.get(uri => uri.includes('/'))
|
||||
.reply(200, {
|
||||
a: [mockData.mockBalance]
|
||||
g: [mockData.mockBalance]
|
||||
})
|
||||
}
|
||||
|
||||
@@ -985,7 +985,10 @@ describe('#SLP', () => {
|
||||
const result = await balancesForTokenSingle(req, res)
|
||||
// console.log(`result: ${util.inspect(result)}`)
|
||||
|
||||
assert.hasAllKeys(result[0], ['tokenId', 'slpAddress', 'tokenBalance'])
|
||||
assert.isArray(result)
|
||||
assert.property(result[0], 'tokenId')
|
||||
assert.property(result[0], 'slpAddress')
|
||||
assert.property(result[0], 'tokenBalanceString')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user