Fix test for search field

This commit is contained in:
Jackson Harper 2022-11-11 15:19:53 +08:00
parent 83dbb54896
commit c5c59c07c0

View file

@ -155,7 +155,8 @@ describe('query with in param set to invalid value', () => {
describe('query with author set', () => {
it('adds author to the match filters', () => {
const result = parseSearchQuery('author:"Omnivore Blog"')
expect(result.matchFilters).to.contain({ field: 'author', value:'omnivore blog' })
expect(result.matchFilters[0].field).to.equal('author')
expect(result.matchFilters[0].value).to.equal('omnivore blog' })
})
})