mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-17 17:28:36 -05:00
Propagate launch/relaunch logic across the app. Removed some old launch related factories.
This commit is contained in:
@@ -393,19 +393,6 @@ describe('Controller: jobResultsController', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('$scope.relaunchJob', () => {
|
||||
beforeEach(() => {
|
||||
bootstrapTest();
|
||||
});
|
||||
|
||||
it('should relaunch the job', () => {
|
||||
let scope = $scope;
|
||||
$scope.relaunchJob();
|
||||
expect(jobResultsService.relaunchJob)
|
||||
.toHaveBeenCalledWith(scope);
|
||||
});
|
||||
});
|
||||
|
||||
describe('count stuff', () => {
|
||||
beforeEach(() => {
|
||||
count = {
|
||||
|
||||
@@ -18,7 +18,7 @@ describe('Controller: workflowResults', () => {
|
||||
|
||||
beforeEach(angular.mock.module('workflowResults', ($provide) => {
|
||||
['PromptDialog', 'Prompt', 'Wait', 'Rest', '$state', 'ProcessErrors',
|
||||
'InitiatePlaybookRun', 'jobLabels', 'workflowNodes', 'count',
|
||||
'jobLabels', 'workflowNodes', 'count',
|
||||
].forEach((item) => {
|
||||
$provide.value(item, {});
|
||||
});
|
||||
|
||||
@@ -6,7 +6,7 @@ describe('workflowResultsService', () => {
|
||||
let $interval;
|
||||
|
||||
beforeEach(angular.mock.module('workflowResults', ($provide) => {
|
||||
['PromptDialog', 'Prompt', 'Wait', 'Rest', 'ProcessErrors', 'InitiatePlaybookRun', '$state'].forEach(function(item) {
|
||||
['PromptDialog', 'Prompt', 'Wait', 'Rest', 'ProcessErrors', '$state'].forEach(function(item) {
|
||||
$provide.value(item, {});
|
||||
});
|
||||
$provide.value('$stateExtender', { addState: jasmine.createSpy('addState'), });
|
||||
|
||||
Reference in New Issue
Block a user