Skip to content

Commit

Permalink
fix(SearchBar): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnacioBecerra committed May 6, 2024
1 parent 0c0a9cb commit ad28a69
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const value = 'carbon';

const defaultProps = {
clearButtonLabelText: 'Clear',
placeHolderText: 'Search...',
placeholderText: 'Search...',
submitLabel: 'Search',
onChange: mockOnChange,
onSubmit: mockOnSubmit,
Expand Down Expand Up @@ -64,7 +64,7 @@ describe(componentName, () => {

expect(searchBox).toBeInTheDocument();
expect(searchBox.value).toBe('');
expect(searchBox.placeholder).toBe(defaultProps.placeHolderText);
expect(searchBox.placeholder).toBe(defaultProps.placeholderText);
expect(submitButton).toHaveTextContent(defaultProps.submitLabel);
expect(submitButton).toBeInTheDocument();
expect(submitButton).toBeDisabled();
Expand Down

0 comments on commit ad28a69

Please sign in to comment.