(initialData: Array<User>)
| 1308 | // data from the source collection to fill the window. |
| 1309 | |
| 1310 | function createUsersCollectionWithIndex(initialData: Array<User>) { |
| 1311 | return createCollection( |
| 1312 | mockSyncCollectionOptions<User>({ |
| 1313 | id: `test-users-indexed`, |
| 1314 | getKey: (user) => user.id, |
| 1315 | initialData, |
| 1316 | autoIndex: `eager`, |
| 1317 | }), |
| 1318 | ) |
| 1319 | } |
| 1320 | |
| 1321 | it(`should load more data when pipeline filters items from the orderBy window`, async () => { |
| 1322 | // 6 users, ordered by name asc, limit 3 |
no test coverage detected
searching dependent graphs…