mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
fix test?
This commit is contained in:
@@ -5,7 +5,7 @@ describe('Controller: jobResultsController', () => {
|
|||||||
// Setup
|
// Setup
|
||||||
let jobResultsController;
|
let jobResultsController;
|
||||||
|
|
||||||
let jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTypeChange, ParseVariableString, jobResultsService, eventQueue, $compile, eventResolve, populateResolve, $rScope, q, $log, Dataset, Rest, $state, QuerySet, i18n,fieldChoices, fieldLabels, $interval, workflowResultsService;
|
let jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTypeChange, ParseVariableString, jobResultsService, eventQueue, $compile, eventResolve, populateResolve, $rScope, q, $log, Dataset, Rest, $state, QuerySet, i18n,fieldChoices, fieldLabels, $interval, workflowResultsService, statusSocket;
|
||||||
|
|
||||||
jobData = {
|
jobData = {
|
||||||
related: {}
|
related: {}
|
||||||
@@ -90,7 +90,7 @@ describe('Controller: jobResultsController', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let injectVals = () => {
|
let injectVals = () => {
|
||||||
angular.mock.inject((_jobData_, _jobDataOptions_, _jobLabels_, _jobFinished_, _count_, _ParseTypeChange_, _ParseVariableString_, _jobResultsService_, _eventQueue_, _$compile_, $rootScope, $controller, $q, $httpBackend, _$log_, _Dataset_, _Rest_, _$state_, _QuerySet_, _$interval_, _workflowResultsService_) => {
|
angular.mock.inject((_jobData_, _jobDataOptions_, _jobLabels_, _jobFinished_, _count_, _ParseTypeChange_, _ParseVariableString_, _jobResultsService_, _eventQueue_, _$compile_, $rootScope, $controller, $q, $httpBackend, _$log_, _Dataset_, _Rest_, _$state_, _QuerySet_, _$interval_, _workflowResultsService_, _statusSocket_) => {
|
||||||
// when you call $scope.$apply() (which you need to do to
|
// when you call $scope.$apply() (which you need to do to
|
||||||
// to get inside of .then blocks to test), something is
|
// to get inside of .then blocks to test), something is
|
||||||
// causing a request for all static files.
|
// causing a request for all static files.
|
||||||
@@ -127,6 +127,7 @@ describe('Controller: jobResultsController', () => {
|
|||||||
QuerySet = _QuerySet_;
|
QuerySet = _QuerySet_;
|
||||||
$interval = _$interval_;
|
$interval = _$interval_;
|
||||||
workflowResultsService = _workflowResultsService_;
|
workflowResultsService = _workflowResultsService_;
|
||||||
|
statusSocket = _statusSocket_;
|
||||||
|
|
||||||
jobResultsService.getEvents.and
|
jobResultsService.getEvents.and
|
||||||
.returnValue(eventResolve);
|
.returnValue(eventResolve);
|
||||||
@@ -157,7 +158,8 @@ describe('Controller: jobResultsController', () => {
|
|||||||
Dataset: Dataset,
|
Dataset: Dataset,
|
||||||
Rest: Rest,
|
Rest: Rest,
|
||||||
$state: $state,
|
$state: $state,
|
||||||
QuerySet: QuerySet
|
QuerySet: QuerySet,
|
||||||
|
statusSocket: statusSocket
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user