mapping-editor-service : added test case 91/59991/1
authorArundathi Patil <arundpil@in.ibm.com>
Fri, 10 Aug 2018 10:54:49 +0000 (16:24 +0530)
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>
Fri, 10 Aug 2018 10:55:03 +0000 (16:25 +0530)
wrote test case to test getKeysForValues() function

Issue-ID: APPC-1064
Change-Id: I7055986e9722a9b3889601ce94c3da7dcc16b96e
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
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');
+    });
 });