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>
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