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 bd4d744 commit d75e17aCopy full SHA for d75e17a
src/atoms/typography/heading-icon.test.tsx
@@ -1,5 +1,20 @@
1
import React from "react";
2
+import faker from "faker";
3
+import { HeadingIcon } from "./heading-icon";
4
+import { render } from "@testing-library/react";
5
+import { Icons } from "../constants/icons";
6
7
describe("HeadingIcon", () => {
- test.skip("TODO - https://github.com/AndcultureCode/AndcultureCode.JavaScript.React.Components/issues/14", () => {});
8
+ test("when default props, renders Heading with Icon", () => {
9
+ // Arrange
10
+ const expected = faker.random.words();
11
+
12
+ // Act
13
+ const { getByText } = render(
14
+ <HeadingIcon type={Icons.Checkmark}>{expected}</HeadingIcon>
15
+ );
16
17
+ // Assert
18
+ expect(getByText(expected)).not.toBeNil();
19
+ });
20
});
0 commit comments