header component tests

This commit is contained in:
Art Lowel
2017-01-17 18:50:07 +01:00
parent 5418e3c8cc
commit e1d69e0efd
3 changed files with 84 additions and 14 deletions

View File

@@ -2,11 +2,7 @@ import { Component, OnInit } from "@angular/core";
import { Store } from "@ngrx/store";
import { HeaderState } from "./header.reducer";
import { Observable } from "rxjs";
import {
HeaderCollapseAction,
HeaderExpandAction,
HeaderToggleAction
} from "./header.actions";
import { HeaderToggleAction } from "./header.actions";
@Component({
selector: 'ds-header',
@@ -27,14 +23,6 @@ export class HeaderComponent implements OnInit {
.map(({ navCollapsed }: HeaderState) => navCollapsed);
}
private collapse(): void {
this.store.dispatch(new HeaderCollapseAction());
}
private expand(): void {
this.store.dispatch(new HeaderExpandAction());
}
public toggle(): void {
this.store.dispatch(new HeaderToggleAction());
}