From e618d145f5b182993147e00c51cfd6a1e9e70c54 Mon Sep 17 00:00:00 2001 From: k1r1m1 Date: Thu, 19 Aug 2021 00:36:49 +0300 Subject: [PATCH] bugfix: fix test setup for ch1.2 Client test - do not create a new unsignedTx object, instead infer it from the already generated tx.contents object --- ch1/1.2/test/test.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ch1/1.2/test/test.js b/ch1/1.2/test/test.js index 6ba35d77..52af6d4f 100644 --- a/ch1/1.2/test/test.js +++ b/ch1/1.2/test/test.js @@ -15,14 +15,9 @@ describe('Client Tests', () => { // run the tests beforeEach(() => { tx = alice.generateTx(bob.wallet.address, 10, 'send'); + unsigned = tx.contents; }); it('should properly set contents', () => { - unsignedTx = { - type: 'send', - amount: 10, - from: alice.wallet.address, - to: bob.wallet.address, - }; assert.deepEqual(tx.contents, unsignedTx); }); it('should properly sign the contents', () => {