ReferenceDataForm : added test case 07/59407/1
authorArundathi Patil <arundpil@in.ibm.com>
Tue, 7 Aug 2018 10:01:40 +0000 (15:31 +0530)
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>
Tue, 7 Aug 2018 10:01:56 +0000 (15:31 +0530)
wrote unit test case to test openModel function of referenceDataForm
component.

Issue-ID: APPC-1064
Change-Id: I4dcd719876df1bd1ce4a30baa7131f081b9923b2
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts

index f39f08b..f7f4c8f 100644 (file)
@@ -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