Skip to content

Commit

Permalink
test: update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed May 18, 2023
1 parent 320a762 commit fadd395
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"rc-motion": "^2.0.1",
"rc-overflow": "^1.0.0",
"rc-util": "^5.16.1",
"rc-virtual-list": "^3.5.1"
"rc-virtual-list": "^3.5.2"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
Expand Down
5 changes: 4 additions & 1 deletion tests/Select.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1937,6 +1937,9 @@ describe('Select.Basic', () => {
});

it('scrollbar should be left position with rtl direction', () => {

const options = new Array(10).fill(null).map((_, value) => ({ value }));

const { container } = testingRender(<Select open direction="rtl" options={options} />);
expect(container.querySelector('.rc-virtual-list-rtl')).toBeTruthy();
});
});

0 comments on commit fadd395

Please sign in to comment.