aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-11-04 18:59:11 +0530
committerTakamune Cho <takamune.cho@att.com>2019-11-07 14:05:13 +0000
commitc15167400edf82b1b0be00b22a97697e975dd3c3 (patch)
treeec533171304a7a1bb4278e80d62f0c3f84210c13
parent60885e681f89907b507650bf93cb7a388c8c4ed3 (diff)
Confirm-component-test fix
Fixed failing test cases Issue-ID: APPC-1632 Change-Id: Ibd006c45491ad0a1c5c887c93aade715dd93dd95 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
-rw-r--r--src/app/shared/confirmModal/confirm.component.spec.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/shared/confirmModal/confirm.component.spec.ts b/src/app/shared/confirmModal/confirm.component.spec.ts
index db7877f..0214f50 100644
--- a/src/app/shared/confirmModal/confirm.component.spec.ts
+++ b/src/app/shared/confirmModal/confirm.component.spec.ts
@@ -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);
}));
});