diff options
author | Dan <danjm.com@gmail.com> | 2018-05-14 17:31:41 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-05-14 17:31:41 +0800 |
commit | c2ed2d4e5003abd01552570452a5b0b38626abca (patch) | |
tree | 4d5e0a96cb75f3fdb2812e11c10a61b2e0a68d32 /ui/app/components/send_/send-content/send-gas-row/tests | |
parent | 145e53b404af6adb49fba2636474455aba86ff81 (diff) | |
download | tangerine-wallet-browser-c2ed2d4e5003abd01552570452a5b0b38626abca.tar.gz tangerine-wallet-browser-c2ed2d4e5003abd01552570452a5b0b38626abca.tar.zst tangerine-wallet-browser-c2ed2d4e5003abd01552570452a5b0b38626abca.zip |
Lint fixes
Diffstat (limited to 'ui/app/components/send_/send-content/send-gas-row/tests')
-rw-r--r-- | ui/app/components/send_/send-content/send-gas-row/tests/send-gas-row-component.test.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ui/app/components/send_/send-content/send-gas-row/tests/send-gas-row-component.test.js b/ui/app/components/send_/send-content/send-gas-row/tests/send-gas-row-component.test.js index a96e8c8bb..e4f05d708 100644 --- a/ui/app/components/send_/send-content/send-gas-row/tests/send-gas-row-component.test.js +++ b/ui/app/components/send_/send-content/send-gas-row/tests/send-gas-row-component.test.js @@ -11,11 +11,8 @@ const propsMethodSpies = { showCustomizeGasModal: sinon.spy(), } -const MOCK_EVENT = { preventDefault: () => {} } - describe('SendGasRow Component', function () { let wrapper - let instance beforeEach(() => { wrapper = shallow(<SendGasRow @@ -25,7 +22,6 @@ describe('SendGasRow Component', function () { gasTotal={'mockGasTotal'} showCustomizeGasModal={propsMethodSpies.showCustomizeGasModal} />, { context: { t: str => str + '_t' } }) - instance = wrapper.instance() }) afterEach(() => { @@ -57,10 +53,10 @@ describe('SendGasRow Component', function () { gasTotal, onClick, } = wrapper.find(SendRowWrapper).childAt(0).props() - assert.equal(conversionRate,20) - assert.equal(convertedCurrency,'mockConvertedCurrency') + assert.equal(conversionRate, 20) + assert.equal(convertedCurrency, 'mockConvertedCurrency') assert.equal(gasLoadingError, false) - assert.equal(gasTotal,'mockGasTotal') + assert.equal(gasTotal, 'mockGasTotal') assert.equal(propsMethodSpies.showCustomizeGasModal.callCount, 0) onClick() assert.equal(propsMethodSpies.showCustomizeGasModal.callCount, 1) |