move db assignment from beforeEach to beforeAll

This commit is contained in:
Reda Al Sulais
2023-08-10 22:43:39 +03:00
parent be106befff
commit 3f5da06bb0

View File

@@ -8,8 +8,11 @@ setConfig({
});
describe('pie chart', () => {
beforeEach(() => {
beforeAll(() => {
parser.yy = db;
});
beforeEach(() => {
parser.yy.clear();
});