Skip to content

Commit

Permalink
test(frontend): fix skills test
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-h1 committed Dec 17, 2024
1 parent e89dfb0 commit a36e49b
Show file tree
Hide file tree
Showing 2 changed files with 180 additions and 177 deletions.
5 changes: 4 additions & 1 deletion src/components/Skills/Skills.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import render from '@frontend/test/render';
import toCamelCase from '@frontend/utils/toCamelCase';
import { screen } from '@testing-library/react';
import Skills, { skills } from '.';

Expand All @@ -7,7 +8,9 @@ describe('Skills', () => {
const { container } = render(<Skills />);
skills.forEach(skill => {
expect(screen.getByText(skill.text)).toBeInTheDocument();
expect(screen.getByTestId(`${skill.text}-icon`)).toBeInTheDocument();
expect(
screen.getByTestId(`${toCamelCase(skill.text)}-icon`),
).toBeInTheDocument();
expect(container).toMatchSnapshot();
});
});
Expand Down
Loading

0 comments on commit a36e49b

Please sign in to comment.