From a7c0bb8f5736c25bc24aecc40f9b797da2a5700f Mon Sep 17 00:00:00 2001 From: Maciej Barelkowski Date: Mon, 15 Apr 2019 13:22:26 +0200 Subject: [PATCH] test(Viewer): make sure it opens only selected diagram --- test/spec/ViewerSpec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/spec/ViewerSpec.js b/test/spec/ViewerSpec.js index c4decacf..46f46dc7 100644 --- a/test/spec/ViewerSpec.js +++ b/test/spec/ViewerSpec.js @@ -823,6 +823,8 @@ describe('Viewer', function() { expect(definitions).to.equal(viewer.getDefinitions()); + expect(viewer.get('elementRegistry').getAll()).to.have.lengthOf(28); + done(); });