mapping-editor.service- added test case 69/64369/1
authorArundathi Patil <arundpil@in.ibm.com>
Tue, 4 Sep 2018 09:11:13 +0000 (14:41 +0530)
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>
Tue, 4 Sep 2018 09:11:30 +0000 (14:41 +0530)
Wrote test case to test selectedObj() function

Issue-ID: APPC-1064
Change-Id: I9be14de56c537f3ba16c8535eb278ccb5fb179cc
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
src/app/shared/services/mapping-editor.service.spec.ts

index a30a4a9..d406d19 100644 (file)
@@ -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