mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 15:30:03 +02:00
add resetConfig
to clear
in pieDb
This commit is contained in:
@@ -10,8 +10,7 @@ setConfig({
|
|||||||
describe('pie chart', () => {
|
describe('pie chart', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
parser.yy = db;
|
parser.yy = db;
|
||||||
db.clear();
|
parser.yy.clear();
|
||||||
db.resetConfig();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('parse', () => {
|
describe('parse', () => {
|
||||||
|
@@ -54,6 +54,7 @@ const clear = (): void => {
|
|||||||
sections = structuredClone(DEFAULT_PIE_DB.sections);
|
sections = structuredClone(DEFAULT_PIE_DB.sections);
|
||||||
showData = DEFAULT_PIE_DB.showData;
|
showData = DEFAULT_PIE_DB.showData;
|
||||||
commonClear();
|
commonClear();
|
||||||
|
resetConfig();
|
||||||
};
|
};
|
||||||
|
|
||||||
const addSection = (label: string, value: number): void => {
|
const addSection = (label: string, value: number): void => {
|
||||||
|
Reference in New Issue
Block a user