aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/buttons/help-button/help-button.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-10-04 15:06:29 +0200
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:14:41 +0100
commite97325a2c174a87c29593d1b42b9a1cc1eaf11af (patch)
tree8bc2f9bd386512350ef596729dae1a9b14b7f3fd /src/components/molecules/buttons/help-button/help-button.test.tsx
parent9eeb49155e2e74df4d5cb2833da20669b85fafe5 (diff)
refactor(components): rewrite HelpButton component
Diffstat (limited to 'src/components/molecules/buttons/help-button/help-button.test.tsx')
-rw-r--r--src/components/molecules/buttons/help-button/help-button.test.tsx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/components/molecules/buttons/help-button/help-button.test.tsx b/src/components/molecules/buttons/help-button/help-button.test.tsx
new file mode 100644
index 0000000..f36fba7
--- /dev/null
+++ b/src/components/molecules/buttons/help-button/help-button.test.tsx
@@ -0,0 +1,13 @@
+import { describe, expect, it } from '@jest/globals';
+import { render, screen as rtlScreen } from '@testing-library/react';
+import { HelpButton } from './help-button';
+
+describe('Help', () => {
+ it('renders a help button', () => {
+ const label = 'hic';
+
+ render(<HelpButton label={label} />);
+
+ expect(rtlScreen.getByRole('button')).toHaveAccessibleName(label);
+ });
+});