Skip to content

Commit 5cb8df7

Browse files
committed
test: add test mocks
1 parent 867ceb9 commit 5cb8df7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/transformProps.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,19 @@ jest.mock('../../utils/tooltip', () => ({
8484
getDefaultTooltip: jest.fn(() => ({})),
8585
}));
8686

87+
jest.mock('../../utils/formatters', () => ({
88+
getXAxisFormatter: jest.fn(() => String),
89+
}));
90+
91+
jest.mock('../../constants', () => ({
92+
TIMESERIES_CONSTANTS: {
93+
gridOffsetBottom: 20,
94+
gridOffsetLeft: 20,
95+
gridOffsetRight: 20,
96+
gridOffsetTop: 20,
97+
},
98+
}));
99+
87100
describe('BigNumberWithTrendline transformProps', () => {
88101
const onContextMenu = jest.fn();
89102
const baseFormData = {

0 commit comments

Comments
 (0)