Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Sep 9, 2024
1 parent 2086bcf commit ce3f2d1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,12 @@ describe('autocomplete.suggest', () => {
triggerCharacter: ' ',
}
);
await assertSuggestions('from a | eval case( integerField != /)', expectedNumericSuggestions);
await assertSuggestions('from a | eval case( integerField != /)', [
// Notice no extra space after field name
...getFieldNamesByType('any').map((field) => `${field}`),
...getFunctionSignaturesByReturnType('eval', 'any', { scalar: true }, undefined, []),
'var0 = ',
]);

// case( field > 0, >) suggests fields like normal
await assertSuggestions(
Expand Down

0 comments on commit ce3f2d1

Please sign in to comment.