rename tests

This commit is contained in:
Dexter 2021-12-14 12:16:06 +00:00
parent 9f6343a9f6
commit 5e2a68a3d0

View File

@ -21,7 +21,7 @@ const intents = ["warn", "action", "error", "success"] as [
]; ];
intents.map((intent) => intents.map((intent) =>
test("Applies class based on intent", () => { test(`Applies class for ${intent}`, () => {
render(<Callout intent={intent} />); render(<Callout intent={intent} />);
expect(screen.getByTestId("callout")).toHaveClass(`callout--${intent}`); expect(screen.getByTestId("callout")).toHaveClass(`callout--${intent}`);
}) })