datePicker test
This commit is contained in:
parent
afa4f6532f
commit
b56ec520cf
|
@ -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()', () => {
|
||||||
|
|
Loading…
Reference in New Issue