Skip to content

Commit

Permalink
feat: revert standalone-app changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rainerhahnekamp committed Sep 29, 2024
1 parent d6cc1c7 commit 6312a4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
11 changes: 3 additions & 8 deletions projects/standalone-app/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import { TestBed } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { RouterTestingModule } from '@angular/router/testing';
import { provideMockStore } from '@ngrx/store/testing';
import { provideRouter } from '@angular/router';
import { provideLocationMocks } from '@angular/common/testing';

describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [AppComponent],
providers: [
provideMockStore(),
provideRouter([]),
provideLocationMocks(),
],
imports: [RouterTestingModule, AppComponent],
providers: [provideMockStore()],
}).compileComponents();
});

Expand Down
6 changes: 3 additions & 3 deletions projects/standalone-app/src/app/app.effects.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { inject, Injectable } from '@angular/core';
import { Injectable } from '@angular/core';
import { Actions, createEffect } from '@ngrx/effects';
import { tap } from 'rxjs';

@Injectable()
export class AppEffects {
private actions$ = inject(Actions);

logger$ = createEffect(
() => {
return this.actions$.pipe(tap((action) => console.log(action)));
},
{ dispatch: false }
);

constructor(private actions$: Actions) {}
}

0 comments on commit 6312a4c

Please sign in to comment.