Skip to content

Commit

Permalink
feat: test
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyair committed Jul 18, 2024
1 parent 65ba9b5 commit 80de2cf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/demo.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ describe('Picker.DisabledTime', () => {
fireEvent.click(wrapper.getByTitle('2021-06-21'));
fireEvent.click(wrapper.getByTitle('2021-06-26'));
closePicker(wrapper.container);
expect(wrapper.container.querySelectorAll('input')?.[0]?.value).toBe('2021-06-21');
expect(wrapper.container.querySelectorAll('input')?.[1]?.value).toBe('2021-06-21');
expect(
[
wrapper.container.querySelectorAll('input')?.[0]?.value,
wrapper.container.querySelectorAll('input')?.[0]?.value,
].join(' '),
).toBe(['2021-06-21', '2021-06-21'].join(' '));
});
});

0 comments on commit 80de2cf

Please sign in to comment.