From 1c2d26eaf1e78097d61b8321ac27eafd0c4e3513 Mon Sep 17 00:00:00 2001 From: gpbl Date: Mon, 6 Jan 2025 09:29:05 -0500 Subject: [PATCH] Add example --- examples/Ethiopic.test.tsx | 16 ++++++++++++++++ examples/Ethiopic.tsx | 7 +++++++ 2 files changed, 23 insertions(+) create mode 100644 examples/Ethiopic.test.tsx create mode 100644 examples/Ethiopic.tsx diff --git a/examples/Ethiopic.test.tsx b/examples/Ethiopic.test.tsx new file mode 100644 index 000000000..c9f3964d1 --- /dev/null +++ b/examples/Ethiopic.test.tsx @@ -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(); +}); + +test.todo("should render the Ethiopic calendar"); diff --git a/examples/Ethiopic.tsx b/examples/Ethiopic.tsx new file mode 100644 index 000000000..0f3aef54f --- /dev/null +++ b/examples/Ethiopic.tsx @@ -0,0 +1,7 @@ +import React from "react"; + +import { DayPicker } from "react-day-picker/ethiopic"; + +export function Ethiopic() { + return ; +}