Skip to content

[AltTestingUtils] Add support to send constructor args in makeStoreTestable() #28

@gaurav414u

Description

@gaurav414u

I have a number of Alt-Stores which require dependencies in the form of constructorArgs. When I use AltTestingUtils.makeStoreTestable(myAltInstance, MyUnWrappedStore) it fails for obvious reasons.
As there is no way to send constructor args in AltTestingUtils.makeStoreTestable(). Ideally it should be there because alt.createStore() also supports this (StoreModel: function, iden: ?string, …constructorArgs): AltStore (docs).

I have almost made the changes and will make a pull request in a bit.

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