From e215e8ebdb1216ff063564484755270af69a42a2 Mon Sep 17 00:00:00 2001 From: "IBM602-PC0F1E3C\\Arundathi" Date: Wed, 11 Jul 2018 17:06:43 +0530 Subject: 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 --- src/app/shared/directives/collapse.component.spec.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/app/shared/directives') 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 +}); -- cgit 1.2.3-korg