From 766e111ac1138749f1ee639ac77f2fa7128701db Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Wed, 7 Sep 2022 11:27:20 +0530 Subject: [PATCH] Fix mindmap import --- src/diagrams/mindmap/mindmap.spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/diagrams/mindmap/mindmap.spec.js b/src/diagrams/mindmap/mindmap.spec.js index 2b88a579d..d194c094e 100644 --- a/src/diagrams/mindmap/mindmap.spec.js +++ b/src/diagrams/mindmap/mindmap.spec.js @@ -1,10 +1,11 @@ import * as mindmapDB from './mindmapDb'; +import { parser } from './parser/mindmap'; describe('when parsing a mindmap ', function () { let mindmap; beforeEach(function () { - mindmap = require('./parser/mindmap').parser; - mindmap.yy = require('./mindmapDb'); + mindmap = parser; + mindmap.yy = mindmapDB; mindmap.yy.clear(); }); describe('hiearchy', function () {