Skip to content
This repository was archived by the owner on May 27, 2020. It is now read-only.
This repository was archived by the owner on May 27, 2020. It is now read-only.

Add test helper for @Select #4

@splincode

Description

@splincode

Feature Request

When I am unit testing my components that use a store, I often just want to mock the store to check whether the right dispatch methods were called.

However when the component contains @select you'll get a errors like:

Error: SelectFactory not connected to store!

Now we can use ugly hacks like the following to get rid of the errors:

Object.defineProperty(component, 'active$', { writable: true });
component.active$ = of([]);

But it would be nicer if we have the ability to have some helpers to mock the selects, or let the SelectFactory be mockable somehow.

See also: #482

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions