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', () => {