Skip to content

Commit 843f5ea

Browse files
Merge pull request #237 from Permissionless-Software-Foundation/ct-unstable
fix(Utxo.get()): Added additional integration tests
2 parents 1c66da7 + 416e302 commit 843f5ea

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/utxo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class UTXO {
9292
// Get SLP UTXOs from the psf-slp-indexer
9393
try {
9494
const slpUtxoData = await this.psfSlpIndexer.balance(addr)
95-
console.log(`slpUtxoData: ${JSON.stringify(slpUtxoData, null, 2)}`)
95+
// console.log(`slpUtxoData: ${JSON.stringify(slpUtxoData, null, 2)}`)
9696

9797
slpUtxos = slpUtxoData.balance.utxos
9898
} catch (err) {

test/integration/chains/bchn/utxo-integration.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ describe('#UTXO', () => {
8787
const addr = 'simpleledger:qz5l5yzz9r09hw9aadcz53elp2knx6gyg5qk3s8md7'
8888

8989
const result = await bchjs.Utxo.get(addr)
90-
console.log(`result: ${JSON.stringify(result, null, 2)}`)
90+
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
9191

9292
// Assert that minting batons are correctly identified.
9393
assert.isAbove(result.slpUtxos.type1.mintBatons.length, 0)
@@ -117,10 +117,9 @@ describe('#UTXO', () => {
117117
const addr = 'simpleledger:qq7vp2kvejsql898a2760kuq6xz00h0a5vuwu9lywu'
118118

119119
const result = await bchjs.Utxo.get(addr)
120-
console.log(`result: ${JSON.stringify(result, null, 2)}`)
120+
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
121121

122-
// assert.isAbove(result.slpUtxos.group.tokens.length, 0)
123-
// assert.isAbove(result.slpUtxos.group.mintBatons.length, 0)
122+
assert.isAbove(result.slpUtxos.nft.tokens.length, 0)
124123
})
125124
})
126125
})

0 commit comments

Comments
 (0)