mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-04 23:02:07 +00:00
test(work-orders): fix advanced filter date fixture and unused import
This commit is contained in:
parent
e446bbae0e
commit
ff32c0da06
2 changed files with 4 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ import {
|
||||||
nextWeekMonday,
|
nextWeekMonday,
|
||||||
weekRange,
|
weekRange,
|
||||||
} from "@/domain/work-orders/utils/list-week-utils";
|
} from "@/domain/work-orders/utils/list-week-utils";
|
||||||
import { addDaysIso, mondayOf } from "@/domain/work-orders/utils/wizard-date-utils";
|
import { mondayOf } from "@/domain/work-orders/utils/wizard-date-utils";
|
||||||
|
|
||||||
describe("list-week-utils", () => {
|
describe("list-week-utils", () => {
|
||||||
it("currentWeekMonday returns a Monday ISO date", () => {
|
it("currentWeekMonday returns a Monday ISO date", () => {
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,9 @@ describe("matchesAdvancedFilters", () => {
|
||||||
const row = makeRow({ site: "SITE01", type: "PM" });
|
const row = makeRow({ site: "SITE01", type: "PM" });
|
||||||
const filters = {
|
const filters = {
|
||||||
...EMPTY_ADVANCED_FILTERS,
|
...EMPTY_ADVANCED_FILTERS,
|
||||||
|
dateRange: "custom" as const,
|
||||||
|
customFrom: "0000-01-01",
|
||||||
|
customTo: "9999-12-31",
|
||||||
sites: new Set(["SITE01"]),
|
sites: new Set(["SITE01"]),
|
||||||
types: new Set(["PM" as const]),
|
types: new Set(["PM" as const]),
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue