mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 02:01:01 -03:30
Updates launch button tests to reflect passing empty object rather than null for launch payload without prompts
This commit is contained in:
@@ -62,7 +62,7 @@ describe('LaunchButton', () => {
|
||||
button.prop('onClick')();
|
||||
expect(JobTemplatesAPI.readLaunch).toHaveBeenCalledWith(1);
|
||||
await sleep(0);
|
||||
expect(JobTemplatesAPI.launch).toHaveBeenCalledWith(1, null);
|
||||
expect(JobTemplatesAPI.launch).toHaveBeenCalledWith(1, {});
|
||||
expect(history.location.pathname).toEqual('/jobs/9000/output');
|
||||
});
|
||||
|
||||
@@ -99,7 +99,7 @@ describe('LaunchButton', () => {
|
||||
button.prop('onClick')();
|
||||
expect(WorkflowJobTemplatesAPI.readLaunch).toHaveBeenCalledWith(1);
|
||||
await sleep(0);
|
||||
expect(WorkflowJobTemplatesAPI.launch).toHaveBeenCalledWith(1, null);
|
||||
expect(WorkflowJobTemplatesAPI.launch).toHaveBeenCalledWith(1, {});
|
||||
expect(history.location.pathname).toEqual('/jobs/workflow/9000/output');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user