MCPcopy Create free account
hub / github.com/TanStack/db / getTestData

Function getTestData

packages/rxdb-db-collection/tests/rxdb.test.ts:29–36  ·  view source on GitHub ↗
(amount: number)

Source from the content-addressed store, hash-verified

27
28 let dbNameId = 0
29 function getTestData(amount: number): Array<TestDocType> {
30 return new Array(amount).fill(0).map((_v, i) => {
31 return {
32 id: i + 1 + ``,
33 name: `Item ` + (i + 1),
34 }
35 })
36 }
37
38 async function getDatababase(
39 initialDocs: Array<TestDocType> = [],

Callers 1

rxdb.test.tsFile · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected