const data = [ [1543276800000, 0], [1543363200000, 0], [1543449600000, 36], [1543536000000, 40], [1543622400000, 0], [1543708800000, 17], [1543795200000, 104], [1543881600000, 13], ]; const model = { _payload: { batch: [ { startValue: 1543449600000, endValue: 1543708800000, }, ], }, series: [ { data, }, ], }; export const chart = { getModel: jest.fn(() => ({...model})), }; export const mockZoomRange = (startValue: number, endValue: number) => { chart.getModel.mockImplementation(() => ({ ...model, _payload: { batch: [ { startValue, endValue, }, ], }, })); };