Skip to content

Commit

Permalink
Fix typo in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas T committed Oct 25, 2023
1 parent a8e29f5 commit 3090eb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('UI Components - Atoms - Input - TextArea', () => {
expect(baseElement.querySelector('label')?.textContent === 'input label').toBeTruthy();
});

it('should render red asterisk afeter label for required input', () => {
it('should render red asterisk after label for required input', () => {
const { baseElement } = render(<TextArea id="input-id" label="input label" required />);
expect(baseElement.getElementsByClassName('u-text-danger')[0].textContent === '*').toBeTruthy();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('UI Components - Atoms - Input - TextField', () => {
expect(baseElement.querySelector('label')?.textContent === 'input label').toBeTruthy();
});

it('should render red asterisk afeter label for required input', () => {
it('should render red asterisk after label for required input', () => {
const { baseElement } = render(<TextField id="input-id" label="input label" required />);
expect(baseElement.getElementsByClassName('u-text-danger')[0].textContent === '*').toBeTruthy();
});
Expand Down

0 comments on commit 3090eb3

Please sign in to comment.