From ed8b4b56c819e622467e88b37e9e84fed69f09c1 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Tue, 7 Aug 2018 15:31:40 +0530 Subject: ReferenceDataForm : added test case wrote unit test case to test openModel function of referenceDataForm component. Issue-ID: APPC-1064 Change-Id: I4dcd719876df1bd1ce4a30baa7131f081b9923b2 Signed-off-by: Arundathi Patil --- .../reference-dataform/reference-dataform.component.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/app/vnfs') diff --git a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts index f39f08b..f7f4c8f 100644 --- a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts +++ b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts @@ -1017,4 +1017,11 @@ describe('ReferenceDataformComponent', () => { component.fileChange(input); })); + + it('Should test openModel function to set proper values', () => { + component.openModel(true, 'toShowMessage', 'title'); + expect(component.modalComponent.isShow).toBe(true); + expect(component.modalComponent.message).toBe('toShowMessage'); + expect(component.modalComponent.title).toBe('title'); + }); }); \ No newline at end of file -- cgit 1.2.3-korg