From 45c7a285856609d5845f1e99311c48d2f269eb68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Thu, 17 Nov 2016 14:13:59 +0100 Subject: [PATCH] Fixing JS tests --- .../localtx/Transaction/transaction.spec.js | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/js/src/dapps/localtx/Transaction/transaction.spec.js b/js/src/dapps/localtx/Transaction/transaction.spec.js index 1fe78124c..5a9e1a8e9 100644 --- a/js/src/dapps/localtx/Transaction/transaction.spec.js +++ b/js/src/dapps/localtx/Transaction/transaction.spec.js @@ -19,15 +19,38 @@ import { shallow } from 'enzyme'; import '../../../environment/tests'; -import Transaction from './transaction'; +import BigNumber from 'bignumber.js'; +import { Transaction, LocalTransaction } from './transaction'; describe('localtx/Transaction', () => { describe('rendering', () => { it('renders without crashing', () => { + const transaction = { + hash: '0x1234567890', + nonce: 15, + gasPrice: new BigNumber(10), + gas: new BigNumber(10) + }; const rendered = shallow( + ); + + expect(rendered).to.be.defined; + }); + }); +}); + +describe('localtx/LocalTransaction', () => { + describe('rendering', () => { + it('renders without crashing', () => { + const rendered = shallow( + );