diff options
author | 2018-09-04 14:41:13 +0530 | |
---|---|---|
committer | 2018-09-04 14:41:30 +0530 | |
commit | 7233ac70a2b90a581f6cdab4060eb7dfcb23a426 (patch) | |
tree | edd34c1e0277550aba9161468299d47f6779ffe6 /src/app/shared | |
parent | 63f8c828cc6ebff1a41ba5eb8164ac9b36af2339 (diff) |
mapping-editor.service- added test case
Wrote test case to test selectedObj() function
Issue-ID: APPC-1064
Change-Id: I9be14de56c537f3ba16c8535eb278ccb5fb179cc
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src/app/shared')
-rw-r--r-- | src/app/shared/services/mapping-editor.service.spec.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/shared/services/mapping-editor.service.spec.ts b/src/app/shared/services/mapping-editor.service.spec.ts index a30a4a9..d406d19 100644 --- a/src/app/shared/services/mapping-editor.service.spec.ts +++ b/src/app/shared/services/mapping-editor.service.spec.ts @@ -319,4 +319,9 @@ describe('MappingEditorService', () => { let tmpDaa = service.getTemplateDataFromStore(); expect(service.storedTemplateData).toBe('data'); }); + + it('should test selectedObj function', ()=>{ + service.selectedObj('data'); + expect(service.newObject).toBe('data'); + }); });
\ No newline at end of file |