Skip to content

Commit 9914bf5

Browse files
committed
Fix distinct test in ts/db
1 parent 3abed69 commit 9914bf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/db/tests/query/distinct.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ function createDistinctTests(autoIndex: `off` | `eager`): void {
477477
emptyCollection.utils.commit()
478478

479479
expect(emptyDistinct.size).toBe(1)
480-
const department = emptyDistinct.get(1)
480+
const department = emptyDistinct.toArray[0]
481481
expect(department?.department).toBe(`Test`)
482482
})
483483

0 commit comments

Comments
 (0)