Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: cover signed cookie without secret #2986

Closed
wants to merge 1 commit into from

Conversation

LinusU
Copy link
Member

@LinusU LinusU commented May 5, 2016

Adds coverage for the line discussed in #2939


request(app)
.get('/')
.end(function(err, res){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think with supertest, this end block can simply be

.expect({ status: 'OK' })

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I forgot the callback:

.expect({ status: 'OK' }, done)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@LinusU
Copy link
Member Author

LinusU commented May 5, 2016

Fixed the comments, and CI are green now 👍

@LinusU
Copy link
Member Author

LinusU commented May 10, 2016

@dougwilson is this good to merge?

@dougwilson
Copy link
Contributor

Sorry, merged to master, since this is just a test addition, which doesn't affect any functionality, it can land on master directly to be included if there is a patch release.

@dougwilson dougwilson self-assigned this May 10, 2016
@LinusU LinusU deleted the signed-cookie-throw branch May 10, 2016 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants