mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-15 02:04:08 +01:00
move db assignment from beforeEach to beforeAll
This commit is contained in:
@@ -8,8 +8,11 @@ setConfig({
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('pie chart', () => {
|
describe('pie chart', () => {
|
||||||
beforeEach(() => {
|
beforeAll(() => {
|
||||||
parser.yy = db;
|
parser.yy = db;
|
||||||
|
});
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
parser.yy.clear();
|
parser.yy.clear();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user