Skip to content

Commit

Permalink
test: Confirm that redundant brackets in Boolean filters are ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
claremacrae committed Mar 10, 2024
1 parent 1f0db58 commit 85fc0cb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Query/Filter/BooleanField.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ describe('boolean query', () => {
testWithDescription(filter, 'xxx #context/location1', true);
testWithDescription(filter, 'xxx #context/location2', false);
});

it('should work with single filter in heavily nested parentheses - via BooleanField', () => {
// Confirm that redundant () are ignored.
const filter = createValidFilter('(((((description includes #context/location1)))))');

testWithDescription(filter, 'xxx #context/location1', true);
testWithDescription(filter, 'xxx #context/location2', false);
});
});

describe('error cases - to show error messages', () => {
Expand Down

0 comments on commit 85fc0cb

Please sign in to comment.