Add vitest

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2025-12-04 11:21:35 +01:00
parent 6f2465a452
commit ad58a36707
3 changed files with 50 additions and 31 deletions
+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);
})