Skip to content

Commit ed2f233

Browse files
Update tests/Select.test.tsx
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent e2086b0 commit ed2f233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Select.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,15 @@ describe('Select.Basic', () => {
262262
expect(container.querySelector('.rc-select-content-has-search-value')).toBeTruthy();
263263
});
264264

265-
it('should add -content-value when option has style', () => {
265+
it('should add -content-has-option-style when option has style', () => {
266266
const { container } = render(
267267
<Select defaultValue="1">
268268
<Option value="1" style={{ color: 'red' }}>
269269
One
270270
</Option>
271271
</Select>,
272272
);
273-
expect(container.querySelector('.rc-select-content-value')).toBeTruthy();
273+
expect(container.querySelector('.rc-select-content-has-option-style')).toBeTruthy();
274274
});
275275

276276
it('should default select the right option', () => {

0 commit comments

Comments
 (0)