diff options
author | IBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com> | 2018-07-11 17:06:43 +0530 |
---|---|---|
committer | Takamune Cho <tc012c@att.com> | 2018-07-16 14:34:33 +0000 |
commit | e215e8ebdb1216ff063564484755270af69a42a2 (patch) | |
tree | 4701d3eee154100bc975741ceaaf75460a3706e8 /src/app/shared/directives | |
parent | 07178dd3c0419a15af7e3dd47967621ab8c8bb5f (diff) |
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 <arundpil@in.ibm.com>
Diffstat (limited to 'src/app/shared/directives')
-rw-r--r-- | src/app/shared/directives/collapse.component.spec.ts | 10 |
1 files changed, 8 insertions, 2 deletions
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 +}); |