aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-08-30 15:19:26 +0530
committerTakamune Cho <tc012c@att.com>2018-08-30 17:49:53 +0000
commit150b1eb01ac7455116e7e9f631ee237a9a87e6cb (patch)
tree908f970932b626be2ef4bdf998b58a0050b48c51 /src/app
parente9d54b820f7a342bd511017421a680fcffc50ed7 (diff)
mapping-editor service- added test case
added test case to test and cover the new methods 'setTemplateDataForStore' and 'getTemplateDataFromStore' in mapping-editor.service Issue-ID: APPC-1064 Change-Id: I473672f9976fa29d7412608c88bda6566b525f36 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/shared/services/mapping-editor.service.spec.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/app/shared/services/mapping-editor.service.spec.ts b/src/app/shared/services/mapping-editor.service.spec.ts
index cce5dfa..a30a4a9 100644
--- a/src/app/shared/services/mapping-editor.service.spec.ts
+++ b/src/app/shared/services/mapping-editor.service.spec.ts
@@ -313,5 +313,10 @@ describe('MappingEditorService', () => {
service.handlekeyCompletion();
expect(spy).toHaveBeenCalled();
});
-});
+ it('should test setTemplateDataForStore function', ()=>{
+ service.setTemplateDataForStore('data');
+ let tmpDaa = service.getTemplateDataFromStore();
+ expect(service.storedTemplateData).toBe('data');
+ });
+}); \ No newline at end of file