aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/icons/cc-by-sa.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-04-08 19:32:58 +0200
committerArmand Philippot <git@armandphilippot.com>2022-04-08 19:32:58 +0200
commit5c75a302c2203cb3ebf31233121026b4775662cf (patch)
treeefaaeb7805d9f211a5f01f920aaa3609648ddc0b /src/components/atoms/icons/cc-by-sa.test.tsx
parenta1e8f1e4426ed3560ce1b76fb73a6969388ed253 (diff)
chore(icons): accept a classname as prop
Diffstat (limited to 'src/components/atoms/icons/cc-by-sa.test.tsx')
-rw-r--r--src/components/atoms/icons/cc-by-sa.test.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/atoms/icons/cc-by-sa.test.tsx b/src/components/atoms/icons/cc-by-sa.test.tsx
index 03d54f7..adb03e4 100644
--- a/src/components/atoms/icons/cc-by-sa.test.tsx
+++ b/src/components/atoms/icons/cc-by-sa.test.tsx
@@ -1,9 +1,9 @@
-import { render } from '@test-utils';
+import { render, screen } from '@test-utils';
import CCBySA from './cc-by-sa';
describe('CCBySA', () => {
it('renders a CC BY SA icon', () => {
- const { container } = render(<CCBySA />);
- expect(container).toBeDefined();
+ render(<CCBySA />);
+ expect(screen.getByTitle('CC BY SA')).toBeInTheDocument();
});
});