Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
neilboyd committed Dec 20, 2024
1 parent 7114d01 commit 1c61b7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/SearchStrategies/LiteralSearchStrategy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ test('matches when search criteria has puncuation', t => {
test('does not match when only only one word of search criteria is in the text', t => {
t.deepEqual(LiteralSearchStrategy.matches('hello world test search text', 'hello muppet'), false)
})

test('matches when criteria is only word', t => {
t.deepEqual(LiteralSearchStrategy.matches('hello', 'hello'), true)
})

0 comments on commit 1c61b7a

Please sign in to comment.