Fixed npe in log #1596

This commit is contained in:
Mike Farah
2023-03-15 13:57:47 +11:00
parent 08a6cb65fe
commit 360a47fddc
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -13,6 +13,12 @@ var variableOperatorScenarios = []expressionScenario{
"D0, P[], (doc)::{}\n",
},
},
{
skipDoc: true,
document: `{}`,
expression: `.a.b as $foo`,
expectedError: "must use variable with a pipe, e.g. `exp as $x | ...`",
},
{
document: "a: [cat]",
skipDoc: true,