diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2018-08-30 15:19:26 +0530 |
---|---|---|
committer | Takamune Cho <tc012c@att.com> | 2018-08-30 17:49:53 +0000 |
commit | 150b1eb01ac7455116e7e9f631ee237a9a87e6cb (patch) | |
tree | 908f970932b626be2ef4bdf998b58a0050b48c51 | |
parent | e9d54b820f7a342bd511017421a680fcffc50ed7 (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>
-rw-r--r-- | src/app/shared/services/mapping-editor.service.spec.ts | 7 |
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 |