Skip to content

Commit 3ce58c8

Browse files
committed
comment: Note that stray characters after sort-by instructions are now in explanation
1 parent 34ed20c commit 3ce58c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Query/Explain/Explainer.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ describe('explain sorters', () => {
273273
it('should explain "sort by" options', () => {
274274
const source = 'sort by due\nsort by priority()';
275275
const query = new Query(source);
276+
// This shows the accidental presence of stray () characters after 'sort by priority'.
277+
// They are not *required* in the explanation, but are retained here to help in user support
278+
// when I ask users to supply an explanation of their query.
276279
expect(explainer.explainSorters(query)).toMatchInlineSnapshot(`
277280
"sort by due
278281

0 commit comments

Comments
 (0)