fix(replace): require correct dependency modules

This commit is contained in:
Nico Rehwaldt 2016-03-11 16:18:10 +01:00
parent 9582a68faf
commit 85f50ff907
3 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,8 @@
module.exports = {
__depends__: [
require('diagram-js/lib/features/popup-menu'),
require('../replace')
],
__init__: [ 'replaceMenuProvider' ],
replaceMenuProvider: [ 'type', require('./ReplaceMenuProvider') ]
};

View File

@ -1,6 +1,5 @@
module.exports = {
__depends__: [
require('diagram-js/lib/features/popup-menu'),
require('diagram-js/lib/features/replace'),
require('diagram-js/lib/features/selection')
],

View File

@ -7,9 +7,7 @@ var TestHelper = require('../../../TestHelper');
var globalEvent = require('../../../util/MockEvents.js').createEvent;
var coreModule = require('../../../../lib/core'),
popupMenuModule = require('diagram-js/lib/features/popup-menu'),
modelingModule = require('../../../../lib/features/modeling'),
replaceModule = require('../../../../lib/features/replace'),
replaceMenuProviderModule = require('../../../../lib/features/popup-menu'),
customRulesModule = require('../../../util/custom-rules');
@ -60,8 +58,6 @@ describe('features/popup-menu - replace menu provider', function() {
var testModules = [
coreModule,
modelingModule,
popupMenuModule,
replaceModule,
replaceMenuProviderModule,
customRulesModule
];