From 373b8c6293aee1a91d621f322baf8b577b1df8b4 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Tue, 21 Apr 2015 14:22:03 +0200 Subject: [PATCH] test(importer): decouple from draw fixtures --- test/fixtures/bpmn/import/default-attrs.bpmn | 24 ++++++++++++++++++++ test/spec/import/ImporterSpec.js | 8 +++---- 2 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 test/fixtures/bpmn/import/default-attrs.bpmn diff --git a/test/fixtures/bpmn/import/default-attrs.bpmn b/test/fixtures/bpmn/import/default-attrs.bpmn new file mode 100644 index 00000000..8b567be7 --- /dev/null +++ b/test/fixtures/bpmn/import/default-attrs.bpmn @@ -0,0 +1,24 @@ + + + + + + + + + + + + + diff --git a/test/spec/import/ImporterSpec.js b/test/spec/import/ImporterSpec.js index f7488960..f168e8ab 100644 --- a/test/spec/import/ImporterSpec.js +++ b/test/spec/import/ImporterSpec.js @@ -9,7 +9,7 @@ var Diagram = require('diagram-js/lib/Diagram'), Viewer = require('../../../lib/Viewer'); -describe('import - importer', function() { +describe('import - Importer', function() { var moddle = new BpmnModdle(); @@ -272,7 +272,7 @@ describe('import - importer', function() { }); - it('should import multiple dis', function(done) { + it('should import multiple DIs', function(done) { // given var xml = require('../../fixtures/bpmn/error/multiple-dis.bpmn'); @@ -291,10 +291,10 @@ describe('import - importer', function() { }); - it('should extend missing attribute with default value', function(done) { + it('should extend attributes with default value', function(done) { // given - var xml = require('../../fixtures//bpmn/draw/gateway-type-default.bpmn'); + var xml = require('../../fixtures/bpmn/import/default-attrs.bpmn'); // when runImport(diagram, xml, function(err, warnings) {