Skip to content

Commit 16a823e

Browse files
committed
updateSn
1 parent 1dad411 commit 16a823e

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

tests/__snapshots__/picker.spec.tsx.snap

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ exports[`Basic icon 1`] = `
2929
exports[`Basic pass data- & aria- & role 1`] = `
3030
<div
3131
class="rc-picker"
32-
exports[`Basic should render correctly in rtl 1`] = `
33-
<div
34-
class="rc-picker rc-picker-rtl"
3532
>
3633
<div
3734
class="rc-picker-input"
@@ -41,6 +38,21 @@ exports[`Basic should render correctly in rtl 1`] = `
4138
data-test="233"
4239
readonly=""
4340
role="search"
41+
size="12"
42+
value=""
43+
/>
44+
</div>
45+
</div>
46+
`;
47+
48+
exports[`Basic should render correctly in rtl 1`] = `
49+
<div
50+
class="rc-picker rc-picker-rtl"
51+
>
52+
<div
53+
class="rc-picker-input"
54+
>
55+
<input
4456
readonly=""
4557
size="12"
4658
value=""

tests/panel.spec.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,11 @@ describe('Panel', () => {
390390
errSpy.mockRestore();
391391
});
392392

393+
it('should render correctly in rtl', () => {
394+
const wrapper = mount(<MomentPickerPanel direction="rtl" />);
395+
expect(wrapper.render()).toMatchSnapshot();
396+
});
397+
393398
describe('hideHeader', () => {
394399
['decade', 'year', 'month', 'date', 'time'].forEach(mode => {
395400
it(mode, () => {
@@ -399,8 +404,5 @@ describe('Panel', () => {
399404
expect(wrapper.find('.rc-picker-header')).toHaveLength(0);
400405
});
401406
});
402-
it('should render correctly in rtl', () => {
403-
const wrapper = mount(<MomentPickerPanel direction="rtl" />);
404-
expect(wrapper.render()).toMatchSnapshot();
405407
});
406408
});

0 commit comments

Comments
 (0)