Confirm-component-test fix 08/97908/2
authorArundathi Patil <arundpil@in.ibm.com>
Mon, 4 Nov 2019 13:29:11 +0000 (18:59 +0530)
committerTakamune Cho <takamune.cho@att.com>
Thu, 7 Nov 2019 14:05:13 +0000 (14:05 +0000)
Fixed failing test cases

Issue-ID: APPC-1632
Change-Id: Ibd006c45491ad0a1c5c887c93aade715dd93dd95
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
src/app/shared/confirmModal/confirm.component.spec.ts

index db7877f..0214f50 100644 (file)
@@ -46,14 +46,14 @@ describe('ConfirmComponent', () => {
     it('should test confirm method with proper return value', async(() => {
         const fixture = TestBed.createComponent(ConfirmComponent);
         const comp = fixture.debugElement.componentInstance;
-        comp.confirm();
+        comp.onConfirm();
         expect(comp.result).toBe(true);
     }));
 
     it('should test cancel method with proper return value', async(() => {
         const fixture = TestBed.createComponent(ConfirmComponent);
         const comp = fixture.debugElement.componentInstance;
-        comp.cancel();
+        comp.onCancel();
         expect(comp.result).toBe(false);
     }));
 });