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

Function createView

tests/unit/ui/TaskListView.dragControls.test.ts:11–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10describe("TaskListView drag controls", () => {
11 const createView = () => {
12 const plugin = {
13 app: new App(),
14 fieldMapper: new FieldMapper(DEFAULT_FIELD_MAPPING),
15 settings: {
16 fieldMapping: DEFAULT_FIELD_MAPPING,
17 },
18 };
19 const containerEl = document.createElement("div");
20 document.body.appendChild(containerEl);
21 return new TaskListView({}, containerEl, plugin as any);
22 };
23
24 beforeEach(() => {
25 MockObsidian.reset();

Calls

no outgoing calls

Tested by

no test coverage detected