Skip to content

Commit 203871f

Browse files
fakenickelskrisk
authored andcommitted
better testing
1 parent 20668ec commit 203871f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/indexing.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ describe('Searching', () => {
6565
includeScore: true,
6666
threshold: 0.3,
6767
keys: [
68-
{ name: 'title', getFn: (book) => book.title },
68+
{ name: 'bookTitle', getFn: (book) => book.title },
6969
{ name: 'authorName', getFn: (book) => book.author.firstName }
7070
]
7171
})
72-
const result = fuse.search({ title: 'old man' })
72+
const result = fuse.search({ bookTitle: 'old man' })
7373
expect(result.length).toBe(1)
7474
expect(idx(result)).toMatchObject([0])
7575
})

0 commit comments

Comments
 (0)