aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-08-10 16:24:49 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2018-08-10 16:25:03 +0530
commit031bbe3d057af9f683ef97397335749532a45e33 (patch)
treee994560536c10872a6fbafb403a346e2184f10e7
parent694f561c51dc0a5bcec66f1b3f15e55b7151f1ac (diff)
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 <arundpil@in.ibm.com>
-rw-r--r--src/app/shared/services/mapping-editor.service.spec.ts5
1 files changed, 5 insertions, 0 deletions
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');
+ });
});