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

Update hook.cors_csrf unit test to be compliant with node 4.x.x #3322

Closed
wants to merge 1 commit into from

Conversation

AlexisNo
Copy link
Contributor

The unit test suite didn't pass with node 4.x.x. The MKCALENDAR http method is now supported but the test was checking the response of an OPTION request globally.

In this PR, I checked the presence of each http method that should be available for node < 4.x.x.
MKCALENDAR is not tested, but the test suite works successfully with 4.x.x .

@AlexisNo AlexisNo closed this Oct 22, 2015
@AlexisNo AlexisNo reopened this Oct 22, 2015
sgress454 added a commit that referenced this pull request Dec 23, 2015
@sgress454
Copy link
Member

Thanks for the PR @AlexisNo. We ended up opting for an approach that mimics the underlying methods module to return the full list of methods, since the objective of the test is to determine as much as possible that the default Express handler is being used.

@sgress454 sgress454 closed this Dec 23, 2015
ctartist621 pushed a commit to ctartist621/sails that referenced this pull request Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants