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