Skip to content

Commit fed2622

Browse files
committed
Refactor EmptyState tests
1 parent c164087 commit fed2622

File tree

2 files changed

+27
-36
lines changed

2 files changed

+27
-36
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { EmptyState } from "./EmptyState";
2+
import type { Meta, StoryObj } from "@storybook/react";
3+
4+
const meta: Meta<typeof EmptyState> = {
5+
title: "components/EmptyState",
6+
component: EmptyState,
7+
args: {
8+
message: "Hello world",
9+
},
10+
};
11+
12+
export default meta;
13+
type Story = StoryObj<typeof EmptyState>;
14+
15+
export const Example: Story = {};
16+
17+
export const WithDescription: Story = {
18+
args: {
19+
description: "Friendly greeting",
20+
},
21+
};
22+
23+
export const WithCTA: Story = {
24+
args: {
25+
cta: <button title="Click me" />,
26+
},
27+
};

site/src/components/EmptyState/EmptyState.test.tsx

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)