How to use the @ngxp/store-service/testing.provideStoreServiceMock function in @ngxp/store-service

To help you get started, we’ve selected a few @ngxp/store-service examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ngxp / store-service / src / app / app.component.spec.ts View on Github external
beforeEach(async(() => {
        TestBed.configureTestingModule({
            imports: [
                RouterTestingModule
            ],
            declarations: [
                AppComponent,
            ],
            providers: [
                provideStoreServiceMock(BookStoreService)
            ]
        }).compileComponents();
    }));
github ngxp / store-service / src / app / components / new-book / new-book.component.spec.ts View on Github external
beforeEach(async(() => {
        TestBed.configureTestingModule({
            imports: [
                AppModule,
                NgrxStoreServiceTestingModule
            ],
            providers: [
                provideStoreServiceMock(BookStoreService)
            ]
        })
            .compileComponents();
    }));

@ngxp/store-service

Adds an abstraction layer / facade between Angular components and the ngrx store with powerful testing helpers

MIT
Latest version published 10 months ago

Package Health Score

56 / 100
Full package analysis