Changeset View
Changeset View
Standalone View
Standalone View
cashtab/src/transactions/__tests__/index.test.js
Show All 14 Lines | |||||
import { MockChronikClient } from '../../../../modules/mock-chronik-client'; | import { MockChronikClient } from '../../../../modules/mock-chronik-client'; | ||||
import { | import { | ||||
sendXecVectors, | sendXecVectors, | ||||
getMultisendTargetOutputsVectors, | getMultisendTargetOutputsVectors, | ||||
ignoreUnspendableUtxosVectors, | ignoreUnspendableUtxosVectors, | ||||
sendSlp, | sendSlp, | ||||
} from '../fixtures/vectors'; | } from '../fixtures/vectors'; | ||||
describe('Improved Cashtab transaction broadcasting function', () => { | describe('We can broadcast XEC transactions', () => { | ||||
// Unit test for each vector in fixtures for the sendingXecToSingleAddress case | // Unit test for each vector in fixtures for the sendingXecToSingleAddress case | ||||
const { txs, errors } = sendXecVectors; | const { txs, errors } = sendXecVectors; | ||||
// Successfully built and broadcast txs | // Successfully built and broadcast txs | ||||
txs.forEach(async tx => { | txs.forEach(async tx => { | ||||
const { | const { | ||||
description, | description, | ||||
wallet, | wallet, | ||||
▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines |