Guest User

Untitled

a guest
Dec 14th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. ngOnInit() {
  2. this.store.dispatch(new LoadPropertiesRequested());
  3. this.properties$ = this.store.pipe(select(selectAllProperties));
  4. this.loading$ = this.store.pipe(select(selectPropertiesLoading));
  5. this.logs$ = this.store.pipe(select(selectPropertiesLogs));
  6. }
  7.  
  8. beforeEach(async(() => {
  9. TestBed.configureTestingModule({
  10. imports: [
  11. StoreModule.forRoot({
  12. ...fromRoot.reducers,
  13. feature: combineReducers(fromProperties.reducer),
  14. })
  15. ],
  16. declarations: [
  17. SidebarPropertiesComponent,
  18. SidebarElementComponent
  19. ]
  20. })
  21. .compileComponents();
  22. }));
Add Comment
Please, Sign In to add comment