Skip to content

Update Promise Testability #70

@MichalKononenko

Description

@MichalKononenko

Currently, user auth is done in one big thunk using the fetch API. We need to figure out a way to stub out server requests, so that we can test the thunk thoroughly. Our assertion library expect has some things in it for spying on function calls. But these require us to pass in the fetch API as a callback. At the best, figure out a way to test the promises. At the worst, the login method will need to be refactored.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions