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:
8
test/unit/util.test.js
Normal file
8
test/unit/util.test.js
Normal 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');
|
||||
});
|
Reference in New Issue
Block a user