mirror of
https://github.com/morris/vanilla-todo.git
synced 2025-01-17 20:58:22 +01:00
11 lines
318 B
JavaScript
11 lines
318 B
JavaScript
import { expect, test } from '@playwright/test';
|
|
import util from '../../public/scripts/util.js';
|
|
import '../coverage.mjs';
|
|
|
|
test('formatDate', () => {
|
|
expect(util.formatDate(new Date(0))).toEqual('January 1st 1970');
|
|
expect(util.formatDate(new Date('2023-05-13 12:00:00'))).toEqual(
|
|
'May 13th 2023',
|
|
);
|
|
});
|