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:
parent
928a8918c6
commit
77363f208e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user