Fix unit tests after "slice" rename.

- Update Jobs List unit tests with new schema and test cases.
- Update Job Details unit tests with new schema and test cases.
- Test both for expected behavior when handling a regular non-sliced job.
This commit is contained in:
kialam
2018-10-17 09:31:34 -04:00
committed by AlanCoding
parent 21aeda0f45
commit f72fca5fcf
3 changed files with 48 additions and 60 deletions

View File

@@ -85,7 +85,11 @@ function ListJobsController (
return null;
}
return `Slice Job ${job.job_slice_number}/${job.job_slice_count}`;
if (job.job_slice_number && job.job_slice_count) {
return `Slice Job ${job.job_slice_number}/${job.job_slice_count}`;
}
return null;
};
vm.getSref = ({ type, id }) => {