From b56ec520cfcea98c6ffb3785263c5cbf8ad26537 Mon Sep 17 00:00:00 2001 From: Daniel Herrero Date: Wed, 13 Dec 2017 14:19:21 +0100 Subject: [PATCH] datePicker test --- client/core/src/datePicker/datePicker.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()', () => {