We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f3dcd7 commit 5066e17Copy full SHA for 5066e17
src/components/dot/__tests__/dot.test.tsx
@@ -59,3 +59,16 @@ test('Should render Dot with plus simbol', async () => {
59
expect(container).toHTMLValidate();
60
expect(results).toHaveNoViolations();
61
});
62
+
63
+test('Get label', async () => {
64
+ const { getByText, container } = renderProvider(
65
+ <Dot {...mockMaxNumberProps} label="myLabel" number={undefined} />
66
+ );
67
68
+ const dot = getByText('myLabel');
69
70
+ expect(dot).toBeInTheDocument();
71
+ const results = await axe(container);
72
+ expect(container).toHTMLValidate();
73
+ expect(results).toHaveNoViolations();
74
+});
0 commit comments