feat: use friendly event date labels
This commit is contained in:
@@ -28,4 +28,17 @@ describe("EventCard actions trigger", () => {
|
||||
expect(markup).not.toContain("opacity-0");
|
||||
expect(markup).not.toContain("group-hover:opacity-100");
|
||||
});
|
||||
|
||||
test("renders friendly shared date formatting instead of native locale strings", () => {
|
||||
const markup = renderToStaticMarkup(
|
||||
EventCard({
|
||||
event: sampleEvent,
|
||||
onEdit: () => {},
|
||||
onDelete: () => {},
|
||||
}),
|
||||
);
|
||||
|
||||
expect(markup).toContain("10:00–11:00");
|
||||
expect(markup).not.toContain("AM");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user