Unit tests for dateToISOStringLocal
This commit is contained in:
parent
4b13e48e9f
commit
f669061d65
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue