Added test case for header-component 33/100733/2
authorRupinder <rupinsi1@in.ibm.com>
Fri, 24 Jan 2020 06:08:21 +0000 (11:38 +0530)
committerRupinder <rupinsi1@in.ibm.com>
Fri, 24 Jan 2020 06:14:04 +0000 (11:44 +0530)
Added test case for Header component

Issue-ID: PORTAL-808
Change-Id: I85df9f8b55f8f0fffe833189393b699771de6a7c
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/components/header/header.component.spec.ts

index 02cfd6b..efe2de1 100644 (file)
@@ -4,6 +4,8 @@
  * ===================================================================
  * Copyright © 2019 AT&T Intellectual Property. All rights reserved.
  * ===================================================================
+ * Modification Copyright © 2020 IBM.
+ * ===================================================================
  *
  * Unless otherwise specified, all software contained herein is licensed
  * under the Apache License, Version 2.0 (the "License");
@@ -74,4 +76,9 @@ describe('HeaderComponent', () => {
     document.getElementById("body").classList.add("push-right");
     expect(component.isToggled()).toBe(true);
   });
+
+  it('should test ngOnInit function', () => {   
+    component.ngOnInit();    
+  });
+
 });