Add unit tests for Job Details

- Test `getSplitJobDetails` method.
- Fix failing tests.
- Rename unit tests.
This commit is contained in:
kialam
2018-10-11 11:10:13 -04:00
committed by AlanCoding
parent 65a0e5ed45
commit 21aeda0f45
4 changed files with 212 additions and 2 deletions

View File

@@ -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 () {