This commit is contained in:
Simon Cambier
2022-05-24 12:54:00 +02:00
parent 7cd2786d15
commit fd74ded722
2 changed files with 9 additions and 1 deletions

View File

@@ -40,6 +40,14 @@ describe('The Query class', () => {
).toBeTruthy()
})
it('should not exclude words when there is no space before', () => {
// Act
const query = new Query('foo bar-baz')
// Assert
expect(query.exclusions).toHaveLength(0)
})
describe('.getExactTerms()', () => {
it('should an array of strings containg "exact" values', () => {
// Act