From 6187f4bbe2ba393646dd86a660a72f324531c2ad Mon Sep 17 00:00:00 2001 From: Reda Al Sulais Date: Thu, 21 Sep 2023 01:32:37 +0300 Subject: [PATCH] change test case with double quotes values --- packages/parser/tests/sankey.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/parser/tests/sankey.test.ts b/packages/parser/tests/sankey.test.ts index a97c67f56e..05d366b958 100644 --- a/packages/parser/tests/sankey.test.ts +++ b/packages/parser/tests/sankey.test.ts @@ -54,8 +54,8 @@ describe('sankey', () => { it('should handle sankey with double quotes with newline and doable quotes', () => { const context = `sankey-beta "source node -"" with comma","target node -"" with comma","10.00" +"" double quotes","target node +"" double quotes","10.00" `; const result = parse(context); noErrorsOrAlternatives(result); @@ -63,16 +63,16 @@ describe('sankey', () => { const value = result.value; expect(value.$type).toBe(Sankey); expect(value.links[0].source).toBe(`source node -" with comma`); +" double quotes`); expect(value.links[0].target).toBe(`target node -" with comma`); +" double quotes`); expect(value.links[0].value).toBe(10); expect(value.nodes).toStrictEqual([ `source node -" with comma`, +" double quotes`, `target node -" with comma`, +" double quotes`, ]); });