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

Function counterGenId

apps/desktop/src/main/database-domain.test.ts:21–24  ·  view source on GitHub ↗

Deterministic id factory for tests.

()

Source from the content-addressed store, hash-verified

19
20/** Deterministic id factory for tests. */
21function counterGenId(): GenId {
22 let n = 0
23 return () => `id-${++n}`
24}
25
26const fieldsById = (fields: DbField[]): Map<string, DbField> =>
27 new Map(fields.map((f) => [f.id, f]))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected