mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-11 17:44:12 +00:00
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
|
// modules the viewer is composed of
|
||||||
Viewer.prototype._modules = [
|
Viewer.prototype._modules = [
|
||||||
require('./core'),
|
require('./core'),
|
||||||
|
require('./draw'),
|
||||||
require('diagram-js/lib/features/selection')
|
require('diagram-js/lib/features/selection')
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
__depends__: [ require('../draw') ],
|
|
||||||
bpmnRegistry: [ 'type', require('./BpmnRegistry') ]
|
bpmnRegistry: [ 'type', require('./BpmnRegistry') ]
|
||||||
};
|
};
|
@ -1,4 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
|
__depends__: [ require('../core') ],
|
||||||
renderer: [ 'type', require('./BpmnRenderer') ],
|
renderer: [ 'type', require('./BpmnRenderer') ],
|
||||||
pathMap: [ 'type', require('./PathMap') ]
|
pathMap: [ 'type', require('./PathMap') ]
|
||||||
};
|
};
|
@ -8,6 +8,8 @@ var fs = require('fs');
|
|||||||
|
|
||||||
var Events = require('diagram-js/lib/core/EventBus');
|
var Events = require('diagram-js/lib/core/EventBus');
|
||||||
|
|
||||||
|
var Viewer = require('../../../../lib/Viewer');
|
||||||
|
|
||||||
|
|
||||||
describe('environment - mocking', function() {
|
describe('environment - mocking', function() {
|
||||||
|
|
||||||
@ -15,7 +17,9 @@ describe('environment - mocking', function() {
|
|||||||
|
|
||||||
var mockEvents, bootstrapCalled;
|
var mockEvents, bootstrapCalled;
|
||||||
|
|
||||||
beforeEach(bootstrapBpmnJS(diagramXML, function() {
|
beforeEach(bootstrapBpmnJS(diagramXML, {
|
||||||
|
modules: Viewer.prototype._modules
|
||||||
|
}, function() {
|
||||||
mockEvents = new Events();
|
mockEvents = new Events();
|
||||||
|
|
||||||
bootstrapCalled = true;
|
bootstrapCalled = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user