feat: add utilities for sorting tasks by their start time #53
Annotations
2 errors and 1 warning
src/utils/__tests__/task-sort-utils.ts#L33
AssertionError: expected [ { times: { …(1) } }, …(3) ] to deeply equal [ { times: { …(1) } }, …(3) ]
Compared values serialize to the same structure.
Printing internal object structure without calling `toJSON` instead.
- Expected
+ Received
Array [
Object {
"times": Object {
"start": DateTime {
"_zone": SystemZone {},
"c": Object {
"day": 7,
"hour": 9,
"millisecond": 0,
"minute": 0,
"month": 12,
"second": 0,
"year": 2024,
},
"invalid": null,
"isLuxonDateTime": true,
"loc": Locale {
"eraCache": Object {},
"fastNumbersCached": null,
"intl": "en-US",
"locale": "en-US",
"meridiemCache": null,
"monthsCache": Object {
"format": Object {},
"standalone": Object {},
},
"numberingSystem": null,
"outputCalendar": null,
"specifiedLocale": null,
"weekSettings": null,
"weekdaysCache": Object {
"format": Object {},
"standalone": Object {},
},
},
"localWeekData": null,
"o": -0,
"ts": 1733562000000,
"weekData": null,
},
},
},
Object {
"times": Object {
"start": DateTime {
"_zone": SystemZone {},
"c": Object {
"day": 7,
"hour": 13,
"millisecond": 0,
"minute": 0,
"month": 12,
"second": 0,
"year": 2024,
},
"invalid": null,
"isLuxonDateTime": true,
"loc": Locale {
"eraCache": Object {},
"fastNumbersCached": null,
"intl": "en-US",
"locale": "en-US",
"meridiemCache": null,
"monthsCache": Object {
"format": Object {},
"standalone": Object {},
},
"numberingSystem": null,
"outputCalendar": null,
"specifiedLocale": null,
"weekSettings": null,
"weekdaysCache": Object {
"format": Object {},
"standalone": Object {},
},
},
"localWeekData": null,
"o": -0,
"ts": 1733576400000,
"weekData": null,
},
},
},
Object {
"times": Object {
"start": DateTime {
"_zone": SystemZone {},
"c": Object {
"day": 7,
"hour": 20,
"millisecond": 0,
"minute": 0,
"month": 12,
"second": 0,
"year": 2024,
},
"invalid": null,
"isLuxonDateTime": true,
"loc": Locale {
"eraCache": Object {},
"fastNumbersCached": null,
"intl": "en-US",
"locale": "en-US",
"meridiemCache": null,
"monthsCache": Object {
"format": Object {},
"standalone": Object {},
},
"numberingSystem": null,
"outputCalendar": null,
"specifiedLocale": null,
"weekSettings": null,
"weekdaysCache": Object {
"format": Object {},
"standalone": Object {},
},
},
"localWeekData": null,
"o": -0,
"ts": 1733601600000,
"weekData": null,
},
},
},
Object {
"times": Object {
"start": DateTime {
"_zone": SystemZone {},
"c": null,
"invalid": Invalid {
"explanation": null,
"reason": "uh-oh!",
},
"isLuxonDateTime": true,
"loc": Locale {
"eraCache": Object {},
"fastNumbersCached": null,
"intl": "en-US",
"locale": "en-US",
"meridiemCache": null,
"monthsCache": Object
|
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
The logs for this run have expired and are no longer available.
Loading