1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-08-22 21:52:54 +02:00

set type module, simplify tests, update deps

This commit is contained in:
Morris Brodersen
2024-01-29 23:13:55 +01:00
parent a01590af93
commit 75ecd1d902
13 changed files with 113 additions and 120 deletions

8
test/unit/util.test.js Normal file
View File

@@ -0,0 +1,8 @@
import { expect, test } from '@playwright/test';
import { formatDate } from '../../public/scripts/util.js';
import '../coverage.js';
test('formatDate', () => {
expect(formatDate(new Date(0))).toEqual('January 1st 1970');
expect(formatDate(new Date('2023-05-13 12:00:00'))).toEqual('May 13th 2023');
});