Skip to content

Commit

Permalink
change test case with double quotes values
Browse files Browse the repository at this point in the history
  • Loading branch information
Yokozuna59 committed Sep 20, 2023
1 parent 5fe951a commit 6187f4b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/parser/tests/sankey.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,25 @@ 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);

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`,
]);
});

Expand Down

0 comments on commit 6187f4b

Please sign in to comment.