fix(replace): remove unused modeling dependency
The modeling module should be provided by components explicitly. This allows users to replace it for customization.
This commit is contained in:
parent
cb52a479e0
commit
7a54267536
|
@ -2,8 +2,7 @@ module.exports = {
|
||||||
__depends__: [
|
__depends__: [
|
||||||
require('diagram-js/lib/features/popup-menu'),
|
require('diagram-js/lib/features/popup-menu'),
|
||||||
require('diagram-js/lib/features/replace'),
|
require('diagram-js/lib/features/replace'),
|
||||||
require('diagram-js/lib/features/selection'),
|
require('diagram-js/lib/features/selection')
|
||||||
require('../modeling')
|
|
||||||
],
|
],
|
||||||
bpmnReplace: [ 'type', require('./BpmnReplace') ]
|
bpmnReplace: [ 'type', require('./BpmnReplace') ]
|
||||||
};
|
};
|
|
@ -6,7 +6,8 @@ var TestHelper = require('../../../TestHelper');
|
||||||
|
|
||||||
|
|
||||||
var contextPadModule = require('../../../../lib/features/context-pad'),
|
var contextPadModule = require('../../../../lib/features/context-pad'),
|
||||||
bpmnModule = require('../../../../lib/core'),
|
coreModule = require('../../../../lib/core'),
|
||||||
|
modelingModule = require('../../../../lib/features/modeling'),
|
||||||
popupModule = require('diagram-js/lib/features/popup-menu'),
|
popupModule = require('diagram-js/lib/features/popup-menu'),
|
||||||
replaceModule = require('diagram-js/lib/features/replace');
|
replaceModule = require('diagram-js/lib/features/replace');
|
||||||
|
|
||||||
|
@ -15,7 +16,7 @@ describe('features - context-pad', function() {
|
||||||
|
|
||||||
var diagramXML = require('../../../fixtures/bpmn/simple.bpmn');
|
var diagramXML = require('../../../fixtures/bpmn/simple.bpmn');
|
||||||
|
|
||||||
var testModules = [ contextPadModule, bpmnModule, popupModule, replaceModule ];
|
var testModules = [ contextPadModule, coreModule, modelingModule, popupModule, replaceModule ];
|
||||||
|
|
||||||
beforeEach(bootstrapViewer(diagramXML, { modules: testModules }));
|
beforeEach(bootstrapViewer(diagramXML, { modules: testModules }));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue