MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / statusQuery

Function statusQuery

tests/unit/services/filterCacheIndexing.test.ts:88–106  ·  view source on GitHub ↗
(status: string)

Source from the content-addressed store, hash-verified

86}
87
88function statusQuery(status: string): FilterQuery {
89 return {
90 type: "group",
91 id: "root",
92 conjunction: "and",
93 children: [
94 {
95 type: "condition",
96 id: "status",
97 property: "status",
98 operator: "is",
99 value: status,
100 },
101 ],
102 sortKey: "due",
103 sortDirection: "asc",
104 groupKey: "none",
105 };
106}
107
108describe("filter cache indexing", () => {
109 it("returns new filter options immediately after indexed fields change", async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected