From 77363f208ef5fbe3cbb7e5a132770256c0edcb94 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Wed, 5 May 2021 21:20:12 +0200 Subject: [PATCH] fixing SearchQueryParser tests --- test/common/unit/SearchQueryParser.ts | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/test/common/unit/SearchQueryParser.ts b/test/common/unit/SearchQueryParser.ts index 7f93420e..154e47b6 100644 --- a/test/common/unit/SearchQueryParser.ts +++ b/test/common/unit/SearchQueryParser.ts @@ -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);