diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2018-08-13 15:18:33 +0530 |
---|---|---|
committer | IBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com> | 2018-08-13 15:18:59 +0530 |
commit | e196dc483c18126715e00b6345de678d0fbf73ca (patch) | |
tree | 0e7fb117407e89ff39976876281f3e2fbe2621e2 /src | |
parent | 031bbe3d057af9f683ef97397335749532a45e33 (diff) |
Mapping-editor service- added test case
Wrote test case to cover handleKetCompletion function in mapping-editor
service.
Issue-ID: APPC-1064
Change-Id: Iefb8e1d5dca1fedbcb6e50d9733ead46d6b5ee0e
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/app/shared/services/mapping-editor.service.spec.ts | 6 |
1 files changed, 6 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 212508f..cce5dfa 100644 --- a/src/app/shared/services/mapping-editor.service.spec.ts +++ b/src/app/shared/services/mapping-editor.service.spec.ts @@ -307,5 +307,11 @@ describe('MappingEditorService', () => { let value = service.getKeysForValues('value'); expect(value).toBe('Value'); }); + + it('should call refreshEditor() function', ()=> { + let spy = spyOn(MappingEditorService.prototype, 'refreshEditor'); + service.handlekeyCompletion(); + expect(spy).toHaveBeenCalled(); + }); }); |