mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38:45 -03:30
fixing unit test for column-sort
after adding the translate directive
This commit is contained in:
@@ -40,6 +40,10 @@ describe('Directive: column-sort', () =>{
|
|||||||
|
|
||||||
this.$stateParams = {};
|
this.$stateParams = {};
|
||||||
|
|
||||||
|
var mockFilter = function (value) {
|
||||||
|
return value;
|
||||||
|
};
|
||||||
|
|
||||||
angular.mock.module('ColumnSortModule', ($provide) =>{
|
angular.mock.module('ColumnSortModule', ($provide) =>{
|
||||||
|
|
||||||
QuerySet = jasmine.createSpyObj('qs', ['search']);
|
QuerySet = jasmine.createSpyObj('qs', ['search']);
|
||||||
@@ -49,6 +53,7 @@ describe('Directive: column-sort', () =>{
|
|||||||
$provide.value('GetBasePath', GetBasePath);
|
$provide.value('GetBasePath', GetBasePath);
|
||||||
$provide.value('$state', this.$state);
|
$provide.value('$state', this.$state);
|
||||||
$provide.value('$stateParams', this.$stateParams);
|
$provide.value('$stateParams', this.$stateParams);
|
||||||
|
$provide.value("translateFilter", mockFilter);
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user