diff options
author | Dan Miller <danjm.com@gmail.com> | 2018-10-11 00:06:38 +0800 |
---|---|---|
committer | Dan Miller <danjm.com@gmail.com> | 2018-12-04 11:36:05 +0800 |
commit | cd32c58fb4bcd731d8a83d354c9b01a38c8df219 (patch) | |
tree | 7dc056bb06c71b2a691eccfbbcaf726bd60a98ed /ui/app/components/gas-customization/gas-modal-page-container/tests | |
parent | a2bbf504b891a63f32070961118ec1ae6fa5fdd8 (diff) | |
download | tangerine-wallet-browser-cd32c58fb4bcd731d8a83d354c9b01a38c8df219.tar.gz tangerine-wallet-browser-cd32c58fb4bcd731d8a83d354c9b01a38c8df219.tar.zst tangerine-wallet-browser-cd32c58fb4bcd731d8a83d354c9b01a38c8df219.zip |
Complete integration of gas chart with redux.
Diffstat (limited to 'ui/app/components/gas-customization/gas-modal-page-container/tests')
2 files changed, 16 insertions, 2 deletions
diff --git a/ui/app/components/gas-customization/gas-modal-page-container/tests/gas-modal-page-container-component.test.js b/ui/app/components/gas-customization/gas-modal-page-container/tests/gas-modal-page-container-component.test.js index bb1a28136..61871f5f3 100644 --- a/ui/app/components/gas-customization/gas-modal-page-container/tests/gas-modal-page-container-component.test.js +++ b/ui/app/components/gas-customization/gas-modal-page-container/tests/gas-modal-page-container-component.test.js @@ -65,6 +65,7 @@ describe('GasModalPageContainer Component', function () { customGasLimit={54321} gasPriceButtonGroupProps={mockGasPriceButtonGroupProps} infoRowProps={mockInfoRowProps} + currentTimeEstimate={'1 min 31 sec'} customGasPriceInHex={'mockCustomGasPriceInHex'} customGasLimitInHex={'mockCustomGasLimitInHex'} />, { context: { t: (str1, str2) => str2 ? str1 + str2 : str1 } }) @@ -199,6 +200,7 @@ describe('GasModalPageContainer Component', function () { customGasPrice: 123, customGasLimit: 456, newTotalFiat: '$0.30', + currentTimeEstimate: '1 min 31 sec', }) const advancedTabContentProps = renderAdvancedTabContentResult.props assert.equal(advancedTabContentProps.updateCustomGasPrice(), 'mockConvertThenUpdateCustomGasPrice') diff --git a/ui/app/components/gas-customization/gas-modal-page-container/tests/gas-modal-page-container-container.test.js b/ui/app/components/gas-customization/gas-modal-page-container/tests/gas-modal-page-container-container.test.js index c16a07b76..3f3be8d0c 100644 --- a/ui/app/components/gas-customization/gas-modal-page-container/tests/gas-modal-page-container-container.test.js +++ b/ui/app/components/gas-customization/gas-modal-page-container/tests/gas-modal-page-container-container.test.js @@ -75,7 +75,12 @@ describe('gas-modal-page-container container', () => { limit: 'aaaaaaaa', price: 'ffffffff', }, - priceAndTimeEstimates: 'mockPriceAndTimeEstimates', + priceAndTimeEstimates: [ + { gasprice: 3, expectedTime: '31' }, + { gasprice: 4, expectedTime: '62' }, + { gasprice: 5, expectedTime: '93' }, + { gasprice: 6, expectedTime: '124' }, + ], }, confirmTransaction: { txData: { @@ -93,11 +98,18 @@ describe('gas-modal-page-container container', () => { isConfirm: true, customGasPrice: 4.294967295, customGasLimit: 2863311530, + currentTimeEstimate: '~1 min 11 sec', newTotalFiat: '637.41', customModalGasLimitInHex: 'aaaaaaaa', customModalGasPriceInHex: 'ffffffff', gasChartProps: { - priceAndTimeEstimates: 'mockPriceAndTimeEstimates', + 'currentPrice': 4.294967295, + priceAndTimeEstimates: [ + { gasprice: 3, expectedTime: '31' }, + { gasprice: 4, expectedTime: '62' }, + { gasprice: 5, expectedTime: '93' }, + { gasprice: 6, expectedTime: '124' }, + ], }, gasPriceButtonGroupProps: { buttonDataLoading: 'mockBasicGasEstimateLoadingStatus:4', |