diff --git a/client/core/src/datePicker/datePicker.spec.js b/client/core/src/datePicker/datePicker.spec.js index 4f2adc7cf..14695a99b 100644 --- a/client/core/src/datePicker/datePicker.spec.js +++ b/client/core/src/datePicker/datePicker.spec.js @@ -2,7 +2,7 @@ import './datePicker.js'; describe('Component vnDatePicker', () => { let $componentController; - let $scope; + let $filter; let $timeout; let $element; let $attrs; @@ -13,14 +13,14 @@ describe('Component vnDatePicker', () => { angular.mock.module('client'); }); - beforeEach(angular.mock.inject((_$componentController_, $rootScope, _$timeout_, _$translate_) => { + beforeEach(angular.mock.inject((_$componentController_, _$filter_, _$timeout_, _$translate_) => { $componentController = _$componentController_; - $scope = $rootScope.$new(); + $filter = _$filter_; $timeout = _$timeout_; $element = angular.element(`
`); $translate = _$translate_; $attrs = {}; - controller = $componentController('vnDatePicker', {$scope, $element, $translate, $timeout, $attrs}); + controller = $componentController('vnDatePicker', {$element, $translate, $filter, $timeout, $attrs}); })); describe('_formatFlat2Angular()', () => {