Skip to content

Commit

Permalink
Revert "better testing"
Browse files Browse the repository at this point in the history
This reverts commit 203871f.
  • Loading branch information
krisk committed May 3, 2022
1 parent 203871f commit 604781a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/indexing.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ describe('Searching', () => {
includeScore: true,
threshold: 0.3,
keys: [
{ name: 'bookTitle', getFn: (book) => book.title },
{ name: 'title', getFn: (book) => book.title },
{ name: 'authorName', getFn: (book) => book.author.firstName }
]
})
const result = fuse.search({ bookTitle: 'old man' })
const result = fuse.search({ title: 'old man' })
expect(result.length).toBe(1)
expect(idx(result)).toMatchObject([0])
})
Expand Down

0 comments on commit 604781a

Please sign in to comment.