Skip to content

Easily testing code with ensureIsAuthenticated middleware #132

@jkresner

Description

@jkresner

Hi, it took me half a day to come up with a way to go about this.

I have a solution in coffee script: http://hackerpreneurialism.com/post/48344246498/node-js-testing-mocking-authenticated-passport-js

If you'd like me to write it in javascript and submit the "mock-passport-middleware" class as a pull request let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions