datePicker test

This commit is contained in:
Daniel Herrero 2017-12-13 14:19:21 +01:00
parent afa4f6532f
commit b56ec520cf
1 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ import './datePicker.js';
describe('Component vnDatePicker', () => { describe('Component vnDatePicker', () => {
let $componentController; let $componentController;
let $scope; let $filter;
let $timeout; let $timeout;
let $element; let $element;
let $attrs; let $attrs;
@ -13,14 +13,14 @@ describe('Component vnDatePicker', () => {
angular.mock.module('client'); angular.mock.module('client');
}); });
beforeEach(angular.mock.inject((_$componentController_, $rootScope, _$timeout_, _$translate_) => { beforeEach(angular.mock.inject((_$componentController_, _$filter_, _$timeout_, _$translate_) => {
$componentController = _$componentController_; $componentController = _$componentController_;
$scope = $rootScope.$new(); $filter = _$filter_;
$timeout = _$timeout_; $timeout = _$timeout_;
$element = angular.element(`<div><input></div>`); $element = angular.element(`<div><input></div>`);
$translate = _$translate_; $translate = _$translate_;
$attrs = {}; $attrs = {};
controller = $componentController('vnDatePicker', {$scope, $element, $translate, $timeout, $attrs}); controller = $componentController('vnDatePicker', {$element, $translate, $filter, $timeout, $attrs});
})); }));
describe('_formatFlat2Angular()', () => { describe('_formatFlat2Angular()', () => {