@bigbinary/neetoui 3.2.69 → 3.2.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
- package/tests/Callout.test.js +20 -0
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Callout } from "../lib/components";
|
|
3
|
+
import { Check } from "@bigbinary/neeto-icons";
|
|
4
|
+
import { render } from "@testing-library/react";
|
|
5
|
+
|
|
6
|
+
describe("Callout", () => {
|
|
7
|
+
it("should render without error", () => {
|
|
8
|
+
const { getByText } = render(
|
|
9
|
+
<Callout>
|
|
10
|
+
<p>Tesing Callout</p>
|
|
11
|
+
</Callout>
|
|
12
|
+
);
|
|
13
|
+
expect(getByText("Tesing Callout")).toBeInTheDocument();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it("should show icon when icon component is provided", () => {
|
|
17
|
+
const { getByTestId } = render(<Callout icon={Check} />);
|
|
18
|
+
expect(getByTestId("callout-icon")).toBeInTheDocument();
|
|
19
|
+
});
|
|
20
|
+
});
|