aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-11-04 19:14:43 +0530
committerArundathi Patil <arundpil@in.ibm.com>2019-11-04 19:14:53 +0530
commitd7b9446c1be73c351eebb26a5731d53ceae22f09 (patch)
tree5ca42ca07d1399a940ec654f7b634b490f7bf63a /src
parentab3e298d54fe481aeb518810be6dadc524a26051 (diff)
test-component- test fix
Fixed failing test case Issue-ID: APPC-1632 Change-Id: I982466530d40119bb3016e4f4eabe6c0042411fc Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/app/test/test.component.spec.ts44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/app/test/test.component.spec.ts b/src/app/test/test.component.spec.ts
index b18e67a..8db1b6f 100644
--- a/src/app/test/test.component.spec.ts
+++ b/src/app/test/test.component.spec.ts
@@ -52,7 +52,7 @@ import { NgProgress } from 'ngx-progressbar';
import { NgProgressModule } from 'ngx-progressbar';
import { NgxSpinnerModule } from 'ngx-spinner';
-describe( 'TestComponent', () => {
+fdescribe( 'TestComponent', () => {
let component: TestComponent;
let fixture: ComponentFixture<TestComponent>;
@@ -420,33 +420,33 @@ describe( 'TestComponent', () => {
});
it('getUrlEndPoint Should return value', () => {
- expect(component.getUrlEndPoint('configmodify')).toEqual('Config-Modify');
- expect(component.getUrlEndPoint('configbackup')).toEqual('config-backup');
- expect(component.getUrlEndPoint('configrestore')).toEqual('config-restore');
- expect(component.getUrlEndPoint('healthcheck')).toEqual('health-check');
- expect(component.getUrlEndPoint('quiescetraffic')).toEqual('quiesce-traffic');
- expect(component.getUrlEndPoint('resumetraffic')).toEqual('resume-traffic');
- expect(component.getUrlEndPoint('distributetraffic')).toEqual('distribute-traffic');
- expect(component.getUrlEndPoint('distributetrafficcheck')).toEqual('distribute-traffic-check');
- expect(component.getUrlEndPoint('startapplication')).toEqual('start-application');
- expect(component.getUrlEndPoint('stopapplication')).toEqual('stop-application');
- expect(component.getUrlEndPoint('upgradebackout')).toEqual('upgrade-backout');
- expect(component.getUrlEndPoint('upgradepostcheck')).toEqual('upgrade-post-check');
- expect(component.getUrlEndPoint('upgradeprecheck')).toEqual('upgrade-pre-check');
- expect(component.getUrlEndPoint('upgradesoftware')).toEqual('upgrade-software');
- expect(component.getUrlEndPoint('DeFaultCASE')).toEqual('defaultcase');
- expect(component.getUrlEndPoint('upgradebackup')).toEqual('upgrade-backup');
- expect(component.getUrlEndPoint('attachvolume')).toEqual('attach-volume');
- expect(component.getUrlEndPoint('detachvolume')).toEqual('detach-volume');
+ expect(component.getUrlEndPoint('configmodify')).toEqual('configmodify');
+ expect(component.getUrlEndPoint('configbackup')).toEqual('configbackup');
+ expect(component.getUrlEndPoint('configrestore')).toEqual('configrestore');
+ expect(component.getUrlEndPoint('healthcheck')).toEqual('healthcheck');
+ expect(component.getUrlEndPoint('quiescetraffic')).toEqual('quiescetraffic');
+ expect(component.getUrlEndPoint('resumetraffic')).toEqual('resumetraffic');
+ expect(component.getUrlEndPoint('distributetraffic')).toEqual('distributetraffic');
+ expect(component.getUrlEndPoint('distributetrafficcheck')).toEqual('distributetrafficcheck');
+ expect(component.getUrlEndPoint('startapplication')).toEqual('startapplication');
+ expect(component.getUrlEndPoint('stopapplication')).toEqual('stopapplication');
+ expect(component.getUrlEndPoint('upgradebackout')).toEqual('upgradebackout');
+ expect(component.getUrlEndPoint('upgradepostcheck')).toEqual('upgradepostcheck');
+ expect(component.getUrlEndPoint('upgradeprecheck')).toEqual('upgradeprecheck');
+ expect(component.getUrlEndPoint('upgradesoftware')).toEqual('upgradesoftware');
+ expect(component.getUrlEndPoint('DeFaultCASE')).toEqual('de-fault-c-a-s-e');
+ expect(component.getUrlEndPoint('upgradebackup')).toEqual('upgradebackup');
+ expect(component.getUrlEndPoint('attachvolume')).toEqual('attachvolume');
+ expect(component.getUrlEndPoint('detachvolume')).toEqual('detachvolume');
});
});
- fdescribe('Test setValuesOnFileUploadFailure Method', () => {
- fit('Should have setValuesOnFileUploadFailure method', () => {
+ describe('Test setValuesOnFileUploadFailure Method', () => {
+ it('Should have setValuesOnFileUploadFailure method', () => {
expect(component.setValuesOnFileUploadFailure).toBeDefined();
});
- fit('getUrlEndPoint setValuesOnFileUploadFailure set value', () => {
+ it('getUrlEndPoint setValuesOnFileUploadFailure set value', () => {
component.setValuesOnFileUploadFailure();
expect(component.flag).toEqual(1);
expect(component.oldListName1).toEqual('');