Skip to content

Commit

Permalink
comment: Note that stray characters after sort-by instructions are no…
Browse files Browse the repository at this point in the history
…w in explanation
  • Loading branch information
claremacrae committed Dec 5, 2024
1 parent 34ed20c commit 3ce58c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Query/Explain/Explainer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ describe('explain sorters', () => {
it('should explain "sort by" options', () => {
const source = 'sort by due\nsort by priority()';
const query = new Query(source);
// This shows the accidental presence of stray () characters after 'sort by priority'.
// They are not *required* in the explanation, but are retained here to help in user support
// when I ask users to supply an explanation of their query.
expect(explainer.explainSorters(query)).toMatchInlineSnapshot(`
"sort by due
Expand Down

0 comments on commit 3ce58c8

Please sign in to comment.