mapping-editor-service : added test case
[appc/cdt.git] / src / app / shared / services / mapping-editor.service.spec.ts
index d7d042d..212508f 100644 (file)
@@ -302,5 +302,10 @@ describe('MappingEditorService', () => {
         service.getReferenceList();
     });
 
+    it('should test getKeysForValues function to return key value', ()=>{        
+        service.paramContent = '{"Value":"value","key":"key"}';
+        let value = service.getKeysForValues('value');
+        expect(value).toBe('Value');
+    });
 });