diff --git a/frontend/tests/unit/tests/work_packages/controllers/menus/options-dropdown-menu-controller-test.js b/frontend/tests/unit/tests/work_packages/controllers/menus/options-dropdown-menu-controller-test.js index cebaf46350..4fdc6d379a 100644 --- a/frontend/tests/unit/tests/work_packages/controllers/menus/options-dropdown-menu-controller-test.js +++ b/frontend/tests/unit/tests/work_packages/controllers/menus/options-dropdown-menu-controller-test.js @@ -86,6 +86,13 @@ describe('optionsDropdown Directive', function() { } }; + wpEditModeState = { + form: { + inEditMode: false, + workPackage: {} + } + } + $provide.constant('wpTableSum', wpTableSum); $provide.constant('wpTableHierarchies', wpTableHierarchies); $provide.constant('wpTableGroupBy', wpTableGroupBy); @@ -94,6 +101,7 @@ describe('optionsDropdown Directive', function() { $provide.constant('groupingModal', groupByModal); $provide.constant('exportModal', exportModal); $provide.constant('states', states); + $provide.constant('wpEditModeState', wpEditModeState); })); beforeEach(inject(function($rootScope, $compile) {