diff --git a/tests/SearchStrategies/LiteralSearchStrategy.test.js b/tests/SearchStrategies/LiteralSearchStrategy.test.js index 0dbb0c4..d213482 100644 --- a/tests/SearchStrategies/LiteralSearchStrategy.test.js +++ b/tests/SearchStrategies/LiteralSearchStrategy.test.js @@ -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) +})