Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Jan 6, 2025
1 parent 5766203 commit 1c2d26e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/Ethiopic.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from "react";

import { render } from "@/test/render";

import { Ethiopic } from "./Ethiopic.jsx";

const today = new Date(2021, 10, 25);

beforeAll(() => jest.setSystemTime(today));
afterAll(() => jest.useRealTimers());

beforeEach(() => {
render(<Ethiopic />);
});

test.todo("should render the Ethiopic calendar");
7 changes: 7 additions & 0 deletions examples/Ethiopic.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

import { DayPicker } from "react-day-picker/ethiopic";

export function Ethiopic() {
return <DayPicker />;
}

0 comments on commit 1c2d26e

Please sign in to comment.