diff options
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.js | 11 |
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 ae98659c..48b8a652 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), + }, + }, }, } }, |