Skip to content

Commit 7a0d5bc

Browse files
committed
test: test case
1 parent 7dde31d commit 7a0d5bc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/panel.spec.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,14 @@ describe('Picker.Panel', () => {
333333
wrapper.selectCell('1910-1919');
334334
expect(onPanelChange).toHaveBeenCalled();
335335
});
336+
337+
it('not trigger when same panel', () => {
338+
const onPanelChange = jest.fn();
339+
const wrapper = mount(<MomentPickerPanel onPanelChange={onPanelChange} />);
340+
341+
wrapper.selectCell('23');
342+
expect(onPanelChange).not.toHaveBeenCalled();
343+
});
336344
});
337345
});
338346

0 commit comments

Comments
 (0)