Skip to content

Commit a73a361

Browse files
committed
tests: change mock variables
1 parent 845df26 commit a73a361

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

__tests__/models/partial_tx.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ describe('PartialTx serialization', () => {
275275
};
276276

277277
it('should serialize a transaction correctly', async () => {
278-
const expected = 'PartialTx|00010102030000389deaf5557642e5a8a26656dcf360b608160f43e7ef79b9bde8ab69a18c00000d906babfa76b092f0088530a85f4d6bae5437304820f4c7a39540d87dd00000000000584ed8ad32b00e79e1c5cf26b5969ca7cd4d93ae39b776e71cfecf7c8c780400000000000f00001976a914729181c0f3f2e3f589cc10facbb9332e0c309a7788ac0000000d01001976a9146861143f7dc6b2f9c8525315efe6fcda160a795c88ac0000000c00001976a914486bc4f1e70f242a737d3866147c7f8335c2995f88ac0000000000000000000000010000000000|WVGxdgZMHkWo2Hdrb1sEFedNdjTXzjvjPi,00,0,1b:WVGxdgZMHkWo2Hdrb1sEFedNdjTXzjvjPi,0000389deaf5557642e5a8a26656dcf360b608160f43e7ef79b9bde8ab69a18c,1,d|1:2';
278+
const expected = 'PartialTx|00010102030000389deaf5557642e5a8a26656dcf360b608160f43e7ef79b9bde8ab69a18c00000d906babfa76b092f0088530a85f4d6bae5437304820f4c7a39540d87dd00000000000584ed8ad32b00e79e1c5cf26b5969ca7cd4d93ae39b776e71cfecf7c8c780400000000000f00001976a914729181c0f3f2e3f589cc10facbb9332e0c309a7788ac0000000d01001976a9146861143f7dc6b2f9c8525315efe6fcda160a795c88ac0000000c00001976a914486bc4f1e70f242a737d3866147c7f8335c2995f88ac0000000000000000000000010000000000|WVGxdgZMHkWo2Hdrb1sEFedNdjTXzjvjPi,00,0,1b:WVGxdgZMHkWo2Hdrb1sEFedNdjTXzjvjPi,0000389deaf5557642e5a8a26656dcf360b608160f43e7ef79b9bde8ab69a18c,0,d|1:2';
279279

280280
const partialTx = new PartialTx(testnet);
281281

__tests__/wallet/partialTxProposal.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ test('addReceive', async () => {
267267

268268
test('addInput', async () => {
269269
const spyReset = jest.spyOn(PartialTxProposal.prototype, 'resetSignatures');
270-
const spyInput = jest.spyOn(PartialTx.prototype, 'addInput');
270+
const spyInput = jest.spyOn(PartialTx.prototype, 'addInput')
271+
.mockImplementation(() => {});
271272

272273
const hwallet = fakeHathorWallet({
273274
markUtxoSelected: jest.fn((hash, index) => {}),
@@ -310,7 +311,8 @@ test('addInput', async () => {
310311

311312
test('addOutput', async () => {
312313
const spyReset = jest.spyOn(PartialTxProposal.prototype, 'resetSignatures');
313-
const spyOutput = jest.spyOn(PartialTx.prototype, 'addOutput');
314+
const spyOutput = jest.spyOn(PartialTx.prototype, 'addOutput')
315+
.mockImplementation(() => {});
314316

315317
const proposal = new PartialTxProposal(testnet);
316318

0 commit comments

Comments
 (0)