mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-31 14:16:42 +02:00
Updated Jest test cases for Pie diagram
This commit is contained in:
@@ -12,5 +12,29 @@ describe('Pie Chart', () => {
|
|||||||
`,
|
`,
|
||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
|
cy.get('svg');
|
||||||
|
});
|
||||||
|
it('should render a simple pie diagram with long labels', () => {
|
||||||
|
imgSnapshotTest(
|
||||||
|
`
|
||||||
|
pie title NETFLIX
|
||||||
|
"Time spent looking for movie" : 90
|
||||||
|
"Time spent watching it" : 10
|
||||||
|
`,
|
||||||
|
{}
|
||||||
|
);
|
||||||
|
cy.get('svg');
|
||||||
|
});
|
||||||
|
it('should render a simple pie diagram with capital letters for labels', () => {
|
||||||
|
imgSnapshotTest(
|
||||||
|
`
|
||||||
|
pie title What Voldemort doesn't have?
|
||||||
|
"FRIENDS" : 2
|
||||||
|
"FAMILY" : 3
|
||||||
|
"NOSE" : 45
|
||||||
|
`,
|
||||||
|
{}
|
||||||
|
);
|
||||||
|
cy.get('svg');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user