Add vitest

This commit is contained in:
T'JAMPENS QUENTIN p2406187 committed 2025-12-04 11:21:35 +01:00
1 parent 6f2465a452
commit ad58a36707
3 files changed
+50 -31

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { expect, test } from 'vitest';
import formatDate from './formatDate';
const date = "2025-11-28T11:26:45.000000Z"
const res = "28/11/2025"
test("Format Date", () => {
expect(formatDate(date)).toBe(res);
})