From 031bbe3d057af9f683ef97397335749532a45e33 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Fri, 10 Aug 2018 16:24:49 +0530 Subject: mapping-editor-service : added test case wrote test case to test getKeysForValues() function Issue-ID: APPC-1064 Change-Id: I7055986e9722a9b3889601ce94c3da7dcc16b96e Signed-off-by: Arundathi Patil --- src/app/shared/services/mapping-editor.service.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/app/shared/services') diff --git a/src/app/shared/services/mapping-editor.service.spec.ts b/src/app/shared/services/mapping-editor.service.spec.ts index d7d042d..212508f 100644 --- a/src/app/shared/services/mapping-editor.service.spec.ts +++ b/src/app/shared/services/mapping-editor.service.spec.ts @@ -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'); + }); }); -- cgit 1.2.3-korg