Skip to content

Commit

Permalink
feat: Creating the structure of the MyAgenda page
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavoSantoz committed Jul 19, 2024
1 parent 5f4b90b commit 760e4bd
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/pages/MyAgenda/MyAgenda.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { Meta, StoryObj } from '@storybook/react';
import { MyAgenda } from "./MyAgenda"

export type Story = StoryObj<typeof MyAgenda>

const meta: Meta<typeof MyAgenda> = {
title: 'Components/MyAgenda',
component: MyAgenda,
} satisfies Meta<typeof MyAgenda>

export default meta;

export const Default: Story = {}
8 changes: 8 additions & 0 deletions src/pages/MyAgenda/MyAgenda.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { render } from '@testing-library/react';
import { MyAgenda } from './MyAgenda';

test('renders MyAgenda', () => {
const { getByText } = render(<MyAgenda />);
const element = getByText(/MyAgenda/i);
expect(element).toBeInTheDocument();
});
7 changes: 7 additions & 0 deletions src/pages/MyAgenda/MyAgenda.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const MyAgenda = () => {
return (
<div>
MyAgenda
</div>
);
};
3 changes: 3 additions & 0 deletions src/pages/MyAgenda/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { MyAgenda } from "./MyAgenda"

export { MyAgenda }

0 comments on commit 760e4bd

Please sign in to comment.