aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send/send-content/send-gas-row/gas-fee-display/test
diff options
context:
space:
mode:
authorDan Miller <danjm.com@gmail.com>2018-11-06 01:01:46 +0800
committerDan Miller <danjm.com@gmail.com>2018-12-04 11:36:22 +0800
commitb70886a99b466366e84d24271adbb890aebf6460 (patch)
treeb4ce415c80ec78120306d358c20d4c51744c8db3 /ui/app/components/send/send-content/send-gas-row/gas-fee-display/test
parenta8259f7f6a26fe5ae21b26b2a5c05dfdb09e32bd (diff)
downloadtangerine-wallet-browser-b70886a99b466366e84d24271adbb890aebf6460.tar.gz
tangerine-wallet-browser-b70886a99b466366e84d24271adbb890aebf6460.tar.zst
tangerine-wallet-browser-b70886a99b466366e84d24271adbb890aebf6460.zip
Fixes for components that break e2e gas customization tests, plus unit test updates.
Diffstat (limited to 'ui/app/components/send/send-content/send-gas-row/gas-fee-display/test')
-rw-r--r--ui/app/components/send/send-content/send-gas-row/gas-fee-display/test/gas-fee-display.component.test.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/app/components/send/send-content/send-gas-row/gas-fee-display/test/gas-fee-display.component.test.js b/ui/app/components/send/send-content/send-gas-row/gas-fee-display/test/gas-fee-display.component.test.js
index c7ac175d9..cb4180508 100644
--- a/ui/app/components/send/send-content/send-gas-row/gas-fee-display/test/gas-fee-display.component.test.js
+++ b/ui/app/components/send/send-content/send-gas-row/gas-fee-display/test/gas-fee-display.component.test.js
@@ -8,9 +8,10 @@ import sinon from 'sinon'
const propsMethodSpies = {
showCustomizeGasModal: sinon.spy(),
+ onReset: sinon.spy(),
}
-describe('SendGasRow Component', function () {
+describe('GasFeeDisplay Component', function () {
let wrapper
beforeEach(() => {
@@ -20,6 +21,7 @@ describe('SendGasRow Component', function () {
primaryCurrency={'mockPrimaryCurrency'}
convertedCurrency={'mockConvertedCurrency'}
showGasButtonGroup={propsMethodSpies.showCustomizeGasModal}
+ onReset={propsMethodSpies.onReset}
/>, {context: {t: str => str + '_t'}})
})
@@ -47,9 +49,9 @@ describe('SendGasRow Component', function () {
className,
} = wrapper.find('button').props()
assert.equal(className, 'gas-fee-reset')
- assert.equal(propsMethodSpies.showCustomizeGasModal.callCount, 0)
+ assert.equal(propsMethodSpies.onReset.callCount, 0)
onClick()
- assert.equal(propsMethodSpies.showCustomizeGasModal.callCount, 1)
+ assert.equal(propsMethodSpies.onReset.callCount, 1)
})
it('should render the reset button with the correct text', () => {