mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
feat: ux enhancement for envelope reveal
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { formatDate } from "../../../../../../../../../home/atom/Documents/code/pi_ku/frontend/src/utils/dateFormat";
|
||||
import { formatRelativeDate } from "./dateFormat";
|
||||
|
||||
describe("formatRelativeDate", () => {
|
||||
@@ -35,3 +36,11 @@ describe("formatRelativeDate", () => {
|
||||
expect(result).toBe("Apr 1, 2026, 6:45 PM");
|
||||
});
|
||||
});
|
||||
|
||||
describe("formatDate", () => {
|
||||
it("should format a new date as mmm dd, yyyy", () => {
|
||||
const result = formatDate("2026-04-01T10:15:00Z");
|
||||
|
||||
expect(result).toBe("April 1, 2026");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user