MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / makeTask

Function makeTask

packages/app-core/src/store.test.ts:9–23  ·  view source on GitHub ↗
(content: string, taskIndex = 0)

Source from the content-addressed store, hash-verified

7import { findLeaf, type PaneLayout, type PaneLeaf } from './lib/pane-layout'
8
9function makeTask(content: string, taskIndex = 0): VaultTask {
10 return {
11 id: `inbox/Note.md#${taskIndex}`,
12 sourcePath: 'inbox/Note.md',
13 noteTitle: 'Note',
14 noteFolder: 'inbox',
15 lineNumber: taskIndex,
16 taskIndex,
17 rawText: `- [ ] ${content}`,
18 content,
19 checked: false,
20 waiting: false,
21 tags: []
22 }
23}
24
25// Some store flows validate tabs against `state.notes` by path, so tests that
26// open multiple tabs need note fixtures whose metadata matches each tab path.

Callers 1

store.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected