Skip to content

Commit 3f5f489

Browse files
actually use a comparator for the test
1 parent f0b9c93 commit 3f5f489

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/web/tests/watch.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,15 +658,18 @@ describe('Watch Tests', { sequential: true }, () => {
658658
parameters: ['test']
659659
})
660660
.watch({
661-
reportFetching: false
661+
reportFetching: false,
662+
// Comparisons require a comparator to be set
663+
comparator: new ArrayComparator({
664+
compareBy: (item) => JSON.stringify(item)
665+
})
662666
});
663667

664668
expect(watch.state.isFetching).false;
665669

666670
let notificationCount = 0;
667671
const dispose = watch.registerListener({
668672
onStateChange: (state) => {
669-
console.log('onStateChange', JSON.stringify(state));
670673
notificationCount++;
671674
}
672675
});

0 commit comments

Comments
 (0)