Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/utils/__tests__/cashMethods.test.js
Show First 20 Lines • Show All 265 Lines • ▼ Show 20 Lines | const outputObj = generateTxOutput( | ||||
destinationAddress, | destinationAddress, | ||||
null, | null, | ||||
changeAddress, | changeAddress, | ||||
txFee, | txFee, | ||||
inputObj.txBuilder, | inputObj.txBuilder, | ||||
); | ); | ||||
const txBuilderResponse = signUtxosByAddress( | const txBuilderResponse = signUtxosByAddress( | ||||
BCH, | |||||
mockSingleInputUtxo, | mockSingleInputUtxo, | ||||
wallet, | wallet, | ||||
outputObj, | outputObj, | ||||
); | ); | ||||
expect(txBuilderResponse.toString()).toStrictEqual( | expect(txBuilderResponse.toString()).toStrictEqual( | ||||
mockOneToOneSendXecTxBuilderObj.toString(), | mockOneToOneSendXecTxBuilderObj.toString(), | ||||
); | ); | ||||
}); | }); | ||||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | const outputObj = generateTxOutput( | ||||
null, | null, | ||||
destinationAddressAndValueArray, | destinationAddressAndValueArray, | ||||
changeAddress, | changeAddress, | ||||
txFee, | txFee, | ||||
inputObj.txBuilder, | inputObj.txBuilder, | ||||
); | ); | ||||
const txBuilderResponse = signUtxosByAddress( | const txBuilderResponse = signUtxosByAddress( | ||||
BCH, | |||||
mockSingleInputUtxo, | mockSingleInputUtxo, | ||||
wallet, | wallet, | ||||
outputObj, | outputObj, | ||||
); | ); | ||||
expect(txBuilderResponse.toString()).toStrictEqual( | expect(txBuilderResponse.toString()).toStrictEqual( | ||||
mockOneToManySendXecTxBuilderObj.toString(), | mockOneToManySendXecTxBuilderObj.toString(), | ||||
); | ); | ||||
}); | }); | ||||
▲ Show 20 Lines • Show All 1,430 Lines • Show Last 20 Lines |