diff --git a/packages/radar/tests/Radar.test.tsx b/packages/radar/tests/Radar.test.tsx index a73383e5b..b7e9b7606 100644 --- a/packages/radar/tests/Radar.test.tsx +++ b/packages/radar/tests/Radar.test.tsx @@ -228,13 +228,10 @@ describe('legend', () => { describe('interactivity', () => { it('should support onClick handler', async () => { const onClick = jest.fn() - // const wrapper = mount( {...baseProps} />) const instance = create( {...baseProps} onClick={onClick} />).root - await act(() => { instance.findAllByType(RadarSlice)[0].findByType('path').props.onClick() }) - expect(onClick).toHaveBeenCalledTimes(1) const [datum] = onClick.mock.calls[0] expect(datum).toHaveProperty('A') diff --git a/storybook/stories/radar/Radar.stories.tsx b/storybook/stories/radar/Radar.stories.tsx index b3d47fd42..ccd23793d 100644 --- a/storybook/stories/radar/Radar.stories.tsx +++ b/storybook/stories/radar/Radar.stories.tsx @@ -227,14 +227,3 @@ export const WithPatterns: Story = { export const WithRotation: Story = { render: args => , } - -export const WithOnClick: Story = { - render: args => ( - console.log('datum', datum)} - /> - ), -}