(id: string)
| 109 | } |
| 110 | |
| 111 | function createChunksCollection(id: string) { |
| 112 | return createCollection( |
| 113 | mockSyncCollectionOptions<Chunk>({ |
| 114 | id, |
| 115 | getKey: (chunk) => chunk.id, |
| 116 | initialData: [ |
| 117 | { id: 1, messageId: 1, text: `hello` }, |
| 118 | { id: 2, messageId: 1, text: `world` }, |
| 119 | { id: 3, messageId: 2, text: `hidden` }, |
| 120 | ], |
| 121 | }), |
| 122 | ) |
| 123 | } |
| 124 | |
| 125 | function createUsersCollection(id: string) { |
| 126 | return createCollection( |
no test coverage detected