mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-05 16:01:50 -05:00
Add unit tests for Job Details
- Test `getSplitJobDetails` method. - Fix failing tests. - Rename unit tests.
This commit is contained in:
@@ -143,7 +143,10 @@ function getSliceJobDetails () {
|
||||
const offset = `${number}/${count}`;
|
||||
const tooltip = strings.get('tooltips.SLICE_JOB_DETAILS');
|
||||
|
||||
return { label, offset, tooltip };
|
||||
if (label && offset && tooltip) {
|
||||
return { label, offset, tooltip };
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function getJobTemplateDetails () {
|
||||
|
||||
Reference in New Issue
Block a user