Skip to content

Commit 3cb51df

Browse files
andrew-colemanmattbaileyuk
authored andcommitted
changes from review
1 parent 0d1282a commit 3cb51df

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

test/parser-recovery.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,13 @@ describe('Invoke parser with incomplete expression', function() {
9494
"stages": [
9595
{
9696
"expr": {
97-
"type": "error",
98-
"error": {
99-
"code": "S0207",
100-
"position": 8,
101-
"token": "(end)"
102-
} },
97+
"type": "error",
98+
"error": {
99+
"code": "S0207",
100+
"position": 8,
101+
"token": "(end)"
102+
}
103+
},
103104
"position": 8,
104105
"type": "filter"
105106
}
@@ -302,15 +303,15 @@ describe('Invoke parser with incomplete expression', function() {
302303
});
303304
});
304305

305-
describe('$equals3lucy[0].UnstructuredAnswers^()[0].Text', function() {
306+
describe('$inputSource[0].UnstructuredAnswers^()[0].Text', function() {
306307
it('should return ast', function() {
307-
var expr = jsonata('$equals3lucy[0].UnstructuredAnswers^()[0].Text', { recover: true });
308+
var expr = jsonata('$inputSource[0].UnstructuredAnswers^()[0].Text', { recover: true });
308309
var ast = expr.ast();
309310
var expected_ast = {
310311
"type": "path",
311312
"steps": [
312313
{
313-
"value": "equals3lucy",
314+
"value": "inputSource",
314315
"type": "variable",
315316
"position": 12,
316317
"predicate": [

0 commit comments

Comments
 (0)