mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3339] added test component for header (#3576)
* [ADF-3339] added test component for header * [APM-3339] remove lint errors * [ADF-3339] solved lint error * [ADF-3339] removed numbers from tests
This commit is contained in:
committed by
Eugenio Romano
parent
c63184334f
commit
9901295e25
@@ -89,7 +89,15 @@ describe('HeaderLayoutComponent', () => {
|
||||
expect(component.clicked.emit).toHaveBeenCalledWith(true);
|
||||
});
|
||||
|
||||
it('if showSidenavToggle is false the button menu should not be displayed', () => {
|
||||
it('if showSidenavToggle is true the button menu should be displayed', () => {
|
||||
component.showSidenavToggle = true;
|
||||
fixture.detectChanges();
|
||||
|
||||
const button = fixture.nativeElement.querySelector('.adf-menu-icon');
|
||||
expect(button === null).toBeFalsy();
|
||||
});
|
||||
|
||||
it('if showSidenavToggle is false the button menu should not be displayed', () => {
|
||||
component.showSidenavToggle = false;
|
||||
fixture.detectChanges();
|
||||
|
||||
|
Reference in New Issue
Block a user