From 4b7972e27287dea5559d5558f7c3f0feae380237 Mon Sep 17 00:00:00 2001 From: ArnaudBuchholz Date: Sat, 3 Dec 2022 00:08:45 -0500 Subject: [PATCH] Adjust expected JSON --- tests/expression.spec.js | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/tests/expression.spec.js b/tests/expression.spec.js index bb352bf..6eb5942 100644 --- a/tests/expression.spec.js +++ b/tests/expression.spec.js @@ -654,19 +654,26 @@ describe('expression', () => { json: { call: [ { - call: [ + get: [ { - get: [ - { constant: [2] }, - { constant: ['toFixed'] } + call: [ + { + get: [ + { constant: [2] }, + { constant: ['toFixed'] } + ] + }, + [ + { constant: [2] } + ] ] }, - [ - { constant: [2] } - ] + { constant: ['endsWith'] } ] }, - [{ constant: ['00'] }] + [ + { constant: ['00'] } + ] ] }, expected: true