Skip to content

Commit faa91f7

Browse files
Missing test and documentation update for this task.
1 parent 1a481a0 commit faa91f7

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/form/SuggestInput.test.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,21 @@ describe('<SuggestInput />', () => {
4545
render(
4646
<SuggestInput placeholder="Type to search" />
4747
);
48-
const wrapper = document.querySelector('.frui-form-suggest-input');
48+
const wrapper =
49+
document.querySelector('.frui-form-suggest-input');
4950
expect(wrapper).toBeInTheDocument();
50-
expect(screen.getByPlaceholderText('Type to search')).toBeInTheDocument();
51+
expect(
52+
screen.getByPlaceholderText('Type to search')
53+
).toBeInTheDocument();
5154
});
5255
it('applies error class when error prop set', () => {
5356
const { container } = render(<SuggestInput error />);
54-
const wrapper = container.querySelector('.frui-form-suggest-input');
57+
const wrapper =
58+
container.querySelector('.frui-form-suggest-input');
5559
expect(wrapper).toBeInTheDocument();
56-
expect(wrapper?.className).toContain('frui-form-suggest-input-error');
60+
expect(
61+
wrapper?.className
62+
).toContain('frui-form-suggest-input-error');
5763
});
5864
it('opens dropdown after typing minimum chars', () => {
5965
const onQuery = vi.fn();

0 commit comments

Comments
 (0)