chore(core): swap draw dependency
Make bpmn-js/draw depend on bpmn-js/core and not vice versa
This commit is contained in:
parent
f386443f1a
commit
88c5dcbb2f
|
@ -229,6 +229,7 @@ Viewer.prototype.on = function(event, handler) {
|
|||
// modules the viewer is composed of
|
||||
Viewer.prototype._modules = [
|
||||
require('./core'),
|
||||
require('./draw'),
|
||||
require('diagram-js/lib/features/selection')
|
||||
];
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
module.exports = {
|
||||
__depends__: [ require('../draw') ],
|
||||
bpmnRegistry: [ 'type', require('./BpmnRegistry') ]
|
||||
};
|
|
@ -1,4 +1,5 @@
|
|||
module.exports = {
|
||||
__depends__: [ require('../core') ],
|
||||
renderer: [ 'type', require('./BpmnRenderer') ],
|
||||
pathMap: [ 'type', require('./PathMap') ]
|
||||
};
|
|
@ -8,6 +8,8 @@ var fs = require('fs');
|
|||
|
||||
var Events = require('diagram-js/lib/core/EventBus');
|
||||
|
||||
var Viewer = require('../../../../lib/Viewer');
|
||||
|
||||
|
||||
describe('environment - mocking', function() {
|
||||
|
||||
|
@ -15,7 +17,9 @@ describe('environment - mocking', function() {
|
|||
|
||||
var mockEvents, bootstrapCalled;
|
||||
|
||||
beforeEach(bootstrapBpmnJS(diagramXML, function() {
|
||||
beforeEach(bootstrapBpmnJS(diagramXML, {
|
||||
modules: Viewer.prototype._modules
|
||||
}, function() {
|
||||
mockEvents = new Events();
|
||||
|
||||
bootstrapCalled = true;
|
||||
|
|
Loading…
Reference in New Issue