Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1765)

Unified Diff: webconsole/frontend/src/app/jobs/job-status/job-status.pipe.spec.ts

Issue 344810043: Updates the job run details page to add the transfer counters information. (Closed)
Patch Set: Addressed patch 2 comments. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webconsole/frontend/src/app/jobs/job-status/job-status.pipe.spec.ts
diff --git a/webconsole/frontend/src/app/jobs/job-status/job-status.pipe.spec.ts b/webconsole/frontend/src/app/jobs/job-status/job-status.pipe.spec.ts
deleted file mode 100644
index 7ca18cbd41cceb9cf0e4f1fb28efeb8a9658c428..0000000000000000000000000000000000000000
--- a/webconsole/frontend/src/app/jobs/job-status/job-status.pipe.spec.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { JobStatusPipe } from './job-status.pipe';
-
-describe('JobStatusPipe', () => {
- it('create an instance', () => {
- const pipe = new JobStatusPipe();
- expect(pipe).toBeTruthy();
- });
-
- it('correctly return not started', () => {
- const pipe = new JobStatusPipe();
- const result = pipe.transform(0);
- expect(result).toEqual('Not Started');
- });
-
- it('correctly return in progress', () => {
- const pipe = new JobStatusPipe();
- const result = pipe.transform(1);
- expect(result).toEqual('In Progress');
- });
-
- it('correctly return failed', () => {
- const pipe = new JobStatusPipe();
- const result = pipe.transform(2);
- expect(result).toEqual('Failed');
- });
-
- it('correctly return success', () => {
- const pipe = new JobStatusPipe();
- const result = pipe.transform(3);
- expect(result).toEqual('Success');
- });
-
- it('handle unknown statuses', () => {
- const pipe = new JobStatusPipe();
- const result = pipe.transform(984);
- expect(result).toEqual('Undefined');
- });
-});
« no previous file with comments | « webconsole/frontend/src/app/jobs/job-status/job-status.pipe.ts ('k') | webconsole/frontend/src/app/jobs/jobs.module.ts » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b