From: IBM602-PC0F1E3C\Arundathi Date: Wed, 11 Jul 2018 11:36:43 +0000 (+0530) Subject: Added a unit test case for collapse directive. X-Git-Tag: 1.4.0~125 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=e215e8ebdb1216ff063564484755270af69a42a2;p=appc%2Fcdt.git Added a unit test case for collapse directive. Added a unit test case that covers the get collapse() function in collapse directive. Issue-ID: APPC-1064 Change-Id: I273cb3a515bae9140fd7807cfa2d11bdee254cfa Signed-off-by: Arundathi --- diff --git a/src/app/shared/directives/collapse.component.spec.ts b/src/app/shared/directives/collapse.component.spec.ts index 7bb7e26..79b53be 100644 --- a/src/app/shared/directives/collapse.component.spec.ts +++ b/src/app/shared/directives/collapse.component.spec.ts @@ -2,6 +2,8 @@ ============LICENSE_START========================================== =================================================================== Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. + +Copyright (C) 2018 IBM Intellectual Property. All rights reserved. =================================================================== Unless otherwise specified, all software contained herein is licensed @@ -48,6 +50,10 @@ describe('CollapseComponent', () => { directive.toggle(); }); - + it('should return proper expand value collapse method', () => { + directive.isExpanded = true; + let expandValue = directive.collapse; + expect(expandValue).toBe(true); + }); }); -}); \ No newline at end of file +});