1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-10 11:10:35 +02:00

fixing SearchQueryParser tests

This commit is contained in:
Patrik J. Braun 2021-05-05 21:20:12 +02:00
parent 928a8918c6
commit 77363f208e

View File

@ -122,13 +122,8 @@ describe('SearchQueryParser', () => {
type: SearchQueryTypes.AND,
list: [
{type: SearchQueryTypes.keyword, text: 'big boom'} as TextSearch,
{
type: SearchQueryTypes.AND,
list: [
{type: SearchQueryTypes.caption, text: 'caption'} as TextSearch,
{type: SearchQueryTypes.position, text: 'New York'} as TextSearch
]
} as ANDSearchQuery
{type: SearchQueryTypes.caption, text: 'caption'} as TextSearch,
{type: SearchQueryTypes.position, text: 'New York'} as TextSearch
]
} as ANDSearchQuery);
check({
@ -158,13 +153,8 @@ describe('SearchQueryParser', () => {
check({
type: SearchQueryTypes.OR,
list: [
{
type: SearchQueryTypes.OR,
list: [
{type: SearchQueryTypes.keyword, text: 'big boom'} as TextSearch,
{type: SearchQueryTypes.person, text: 'person_test'} as TextSearch
]
} as ORSearchQuery,
{type: SearchQueryTypes.keyword, text: 'big boom'} as TextSearch,
{type: SearchQueryTypes.person, text: 'person_test'} as TextSearch,
{type: SearchQueryTypes.position, text: 'New York'} as TextSearch
]
} as ORSearchQuery);