add resetConfig to clear in pieDb

This commit is contained in:
Reda Al Sulais
2023-08-10 21:19:56 +03:00
parent 545d361d3f
commit a9681d1b1c
2 changed files with 2 additions and 2 deletions

View File

@@ -10,8 +10,7 @@ setConfig({
describe('pie chart', () => {
beforeEach(() => {
parser.yy = db;
db.clear();
db.resetConfig();
parser.yy.clear();
});
describe('parse', () => {

View File

@@ -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 => {