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