fix(replace): require correct dependency modules
This commit is contained in:
parent
9582a68faf
commit
85f50ff907
|
@ -1,4 +1,8 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
__depends__: [
|
||||||
|
require('diagram-js/lib/features/popup-menu'),
|
||||||
|
require('../replace')
|
||||||
|
],
|
||||||
__init__: [ 'replaceMenuProvider' ],
|
__init__: [ 'replaceMenuProvider' ],
|
||||||
replaceMenuProvider: [ 'type', require('./ReplaceMenuProvider') ]
|
replaceMenuProvider: [ 'type', require('./ReplaceMenuProvider') ]
|
||||||
};
|
};
|
|
@ -1,6 +1,5 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
__depends__: [
|
__depends__: [
|
||||||
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')
|
||||||
],
|
],
|
||||||
|
|
|
@ -7,9 +7,7 @@ var TestHelper = require('../../../TestHelper');
|
||||||
var globalEvent = require('../../../util/MockEvents.js').createEvent;
|
var globalEvent = require('../../../util/MockEvents.js').createEvent;
|
||||||
|
|
||||||
var coreModule = require('../../../../lib/core'),
|
var coreModule = require('../../../../lib/core'),
|
||||||
popupMenuModule = require('diagram-js/lib/features/popup-menu'),
|
|
||||||
modelingModule = require('../../../../lib/features/modeling'),
|
modelingModule = require('../../../../lib/features/modeling'),
|
||||||
replaceModule = require('../../../../lib/features/replace'),
|
|
||||||
replaceMenuProviderModule = require('../../../../lib/features/popup-menu'),
|
replaceMenuProviderModule = require('../../../../lib/features/popup-menu'),
|
||||||
customRulesModule = require('../../../util/custom-rules');
|
customRulesModule = require('../../../util/custom-rules');
|
||||||
|
|
||||||
|
@ -60,8 +58,6 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
var testModules = [
|
var testModules = [
|
||||||
coreModule,
|
coreModule,
|
||||||
modelingModule,
|
modelingModule,
|
||||||
popupMenuModule,
|
|
||||||
replaceModule,
|
|
||||||
replaceMenuProviderModule,
|
replaceMenuProviderModule,
|
||||||
customRulesModule
|
customRulesModule
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue