aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/buttons/button-link.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-03-31 15:30:07 +0200
committerArmand Philippot <git@armandphilippot.com>2022-03-31 15:30:07 +0200
commit351532e9906e32c862bf6810a3871993cde13ba2 (patch)
tree09eb36959eac3b6f39b03a489cd47740d0a2ea9b /src/components/atoms/buttons/button-link.test.tsx
parentd7d453f7333def28007b94b9c9d872f89224fc91 (diff)
chore: add a button link component
Diffstat (limited to 'src/components/atoms/buttons/button-link.test.tsx')
-rw-r--r--src/components/atoms/buttons/button-link.test.tsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/atoms/buttons/button-link.test.tsx b/src/components/atoms/buttons/button-link.test.tsx
new file mode 100644
index 0000000..52ccdc7
--- /dev/null
+++ b/src/components/atoms/buttons/button-link.test.tsx
@@ -0,0 +1,9 @@
+import { render, screen } from '@test-utils';
+import ButtonLink from './button-link';
+
+describe('ButtonLink', () => {
+ it('renders a ButtonLink component', () => {
+ render(<ButtonLink target="#">Button Link</ButtonLink>);
+ expect(screen.getByRole('link')).toHaveTextContent('Button Link');
+ });
+});