aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/gas-customization/gas-price-chart/tests/gas-price-chart.component.test.js
diff options
context:
space:
mode:
authorDan Miller <danjm.com@gmail.com>2018-10-11 00:06:38 +0800
committerDan Miller <danjm.com@gmail.com>2018-12-04 11:36:05 +0800
commitcd32c58fb4bcd731d8a83d354c9b01a38c8df219 (patch)
tree7dc056bb06c71b2a691eccfbbcaf726bd60a98ed /ui/app/components/gas-customization/gas-price-chart/tests/gas-price-chart.component.test.js
parenta2bbf504b891a63f32070961118ec1ae6fa5fdd8 (diff)
downloadtangerine-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-price-chart/tests/gas-price-chart.component.test.js')
-rw-r--r--ui/app/components/gas-customization/gas-price-chart/tests/gas-price-chart.component.test.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/ui/app/components/gas-customization/gas-price-chart/tests/gas-price-chart.component.test.js b/ui/app/components/gas-customization/gas-price-chart/tests/gas-price-chart.component.test.js
index ae98659cc..48b8a6525 100644
--- a/ui/app/components/gas-customization/gas-price-chart/tests/gas-price-chart.component.test.js
+++ b/ui/app/components/gas-customization/gas-price-chart/tests/gas-price-chart.component.test.js
@@ -10,6 +10,9 @@ const mockSelectReturn = {
node: () => ({
getBoundingClientRect: () => ({ x: 123, y: 321, width: 400 }),
}),
+ empty: sinon.spy(),
+ remove: sinon.spy(),
+ style: sinon.spy(),
select: d3.select,
attr: sinon.spy(),
on: sinon.spy(),
@@ -17,11 +20,17 @@ const mockSelectReturn = {
const GasPriceChart = proxyquire('../gas-price-chart.component.js', {
'c3': {
- generate: function () {
+ generate: function ({ data: { columns } }) {
return {
internal: {
showTooltip: () => {},
showXGridFocus: () => {},
+ hideXGridFocus: () => {},
+ data: {
+ xs: {
+ [columns[1][0]]: columns[1].slice(1),
+ },
+ },
},
}
},