Unit tests for dateToISOStringLocal

This commit is contained in:
RunasSudo 2024-08-27 17:44:23 +10:00
parent 4b13e48e9f
commit f669061d65
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -89,3 +89,10 @@ suite('Bilirubin display', () => {
assert.equal(prettyPrintBilirubin(90.99), '91');
});
});
suite('Date to ISO string', () => {
test('Date to ISO string', () => {
let date = new Date(2024, 11, 25, 4, 20, 31, 415); // Wed Dec 25 2024 04:20:31 GMT+1100 (Australian Eastern Daylight Time)
assert.equal(dateToISOStringLocal(date), '2024-12-25T04:20');
});
});