From 770823d806099860cc2d811015eeb1bfe8aa42b8 Mon Sep 17 00:00:00 2001 From: Vladimir Drayling Date: Tue, 27 Sep 2022 00:57:14 +0200 Subject: [PATCH] fix: tests chore: add description to readme --- README.md | 12 ++++++++++++ .../src/lib/details-feature.component.spec.ts | 12 ++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d1ccbd7..e35e4fe 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ # Immomio This project was generated using [Nx](https://nx.dev). + +## Prepare + +`yarn` + +## Usage + +Angular client: `nx serve angular-client`. + +Nest API: `nx serve nest-api`. + +Dependency graph: `nx dep-graph`. diff --git a/libs/appointment/features/details-feature/src/lib/details-feature.component.spec.ts b/libs/appointment/features/details-feature/src/lib/details-feature.component.spec.ts index 410aa32..377b030 100644 --- a/libs/appointment/features/details-feature/src/lib/details-feature.component.spec.ts +++ b/libs/appointment/features/details-feature/src/lib/details-feature.component.spec.ts @@ -1,5 +1,8 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { AppointmentFacade } from '@immomio/appointment/domain'; +import { + AppointmentFacade, + selectSelectedViewings, +} from '@immomio/appointment/domain'; import { provideMockStore } from '@ngrx/store/testing'; import { DetailsFeatureComponent } from './details-feature.component'; @@ -10,7 +13,12 @@ describe('AppointmentFeaturesDetailsFeatureComponent', () => { beforeEach(() => { TestBed.configureTestingModule({ imports: [DetailsFeatureComponent], - providers: [AppointmentFacade, provideMockStore()], + providers: [ + AppointmentFacade, + provideMockStore({ + selectors: [{ selector: selectSelectedViewings, value: [] }], + }), + ], }); fixture = TestBed.createComponent(DetailsFeatureComponent);