mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 04:31:21 -03:30
Updates launch button tests to reflect passing empty object rather than null for launch payload without prompts
This commit is contained in:
parent
edb4dac652
commit
9d6fbd6c78
@ -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');
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user