added test case for preventing zero% values from rendering

This commit is contained in:
darshanr0107
2025-06-16 19:38:58 +05:30
parent cfbce54638
commit 72c0d9df26

View File

@@ -82,4 +82,13 @@ describe('pie chart', () => {
` `
); );
}); });
it('should render pie slices only for non-zero values but shows all legends', () => {
imgSnapshotTest(
` pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
"Rats" : 1
`
);
});
}); });