diff options
author | 2018-08-07 15:31:40 +0530 | |
---|---|---|
committer | 2018-08-07 15:31:56 +0530 | |
commit | ed8b4b56c819e622467e88b37e9e84fed69f09c1 (patch) | |
tree | 2ef1fb85a055f9683e5194a0b2358611c1cf99eb /src/app/vnfs/build-artifacts | |
parent | 57c8bf3c538bc757e37d0e86ff1fcdb9e1548f65 (diff) |
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 <arundpil@in.ibm.com>
Diffstat (limited to 'src/app/vnfs/build-artifacts')
-rw-r--r-- | src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts | 7 |
1 files changed, 7 insertions, 0 deletions
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 |