Skip to content

Commit 7131691

Browse files
committed
chore: fix lint
1 parent f388b6c commit 7131691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/index.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ describe('Cascader.Basic', () => {
11121112
it('support custom cascader', () => {
11131113
const { container } = render(<Cascader popupStyle={{ zIndex: 999 }} open />);
11141114
const dropdown = container.querySelector('.rc-cascader-dropdown');
1115-
expect(dropdown?.style.zIndex).toBe('999');
1115+
expect(dropdown).toHaveStyle({ zIndex: '999' });
11161116
});
11171117

11181118
it('`null` is a value in Cascader options should throw a warning', () => {

0 commit comments

Comments
 (0)