diff options
author | sj108s <sj108s@us.att.com> | 2018-03-15 20:26:47 +0530 |
---|---|---|
committer | sj108s <sj108s@us.att.com> | 2018-03-15 20:33:07 +0530 |
commit | 90174648e4553018398f88c6acbd9dc905aa17ff (patch) | |
tree | e2f1ad12c68d10020e8fb7681910f4ec7c4d8915 /src/app/test/test.component.ts | |
parent | 7cf978ff9f510733dce1cf70693feedcb5ffbccd (diff) |
Added few more test case & fixed modal in template
Added few more test cases to improve code coverage and changed trigger
command for modal in template page from Enter to ctrl-4
Issue-ID: APPC-697
Change-Id: I4a158ba687bad0bb2f808428333083200714f18a
Signed-off-by: sj108s <sj108s@us.att.com>
Diffstat (limited to 'src/app/test/test.component.ts')
-rw-r--r-- | src/app/test/test.component.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/app/test/test.component.ts b/src/app/test/test.component.ts index 411b057..a7516ec 100644 --- a/src/app/test/test.component.ts +++ b/src/app/test/test.component.ts @@ -148,7 +148,7 @@ export class TestComponent implements OnInit { this.enableBrowse = true; this.enableTestButton = true; this.enablePollButton = true; - this.subscribe.unsubscribe(); + if (this.subscribe && this.subscribe != undefined) this.subscribe.unsubscribe(); } @@ -387,7 +387,7 @@ processUploadedFile(arrData) { this.enableTestButton = true; this.enablePollButton = true; this.enableCounterDiv = false; - this.subscribe.unsubscribe(); + if (this.subscribe && this.subscribe != undefined) this.subscribe.unsubscribe(); }); @@ -449,11 +449,11 @@ processUploadedFile(arrData) { this.status = status; this.statusReason = statusReason; if (status.toUpperCase() === 'SUCCESS' || status.toUpperCase() === 'SUCCESSFUL') { - this.subscribe.unsubscribe(); + if (this.subscribe && this.subscribe != undefined) this.subscribe.unsubscribe(); this.enablePollButton = true; } if (status.toUpperCase() === 'FAILED') { - this.subscribe.unsubscribe(); + if (this.subscribe && this.subscribe != undefined) this.subscribe.unsubscribe(); this.enablePollButton = true; } } @@ -468,7 +468,7 @@ processUploadedFile(arrData) { this.showStatusResponseDiv = false; this.errorResponse = 'Error Connecting to APPC server'; this.enableCounterDiv = false; - this.subscribe.unsubscribe(); + if (this.subscribe && this.subscribe != undefined) this.subscribe.unsubscribe(); }); } |