-
Notifications
You must be signed in to change notification settings - Fork 220
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
A few bugfixes #97
base: master
Are you sure you want to change the base?
A few bugfixes #97
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much! Sorry about your issue. To help ensure this doesn't reoccur and it is functioning as we make changes, please add tests that only pass with your bug fix.
What tests? |
remove the ! I added from the last commit, and default req.cookies to an empty JSON value when there are no cookies
So you said there is a bug, and this is a fix. So we have a file under the tests folder with tests to make sure the module works every time we change something. If you fix a bug but don't add any tests, we are likely to break your bug fix on accident. A test would reproduce the behavior that is causing this module to sit and wait forever as your description states, for example. If you are not sure how to do this, we can help. Just provide an app and instructions for how to reproduce the hanging behavior you are seeing and we can help make that in to a test. |
Ok |
I see, it is not the tests failing, but the lint check. This is just bc it checks to make sure the code is styled correctly. You can run |
using [ValidateJavascript](https://validatejavascript.com/)
I was actually just editing it straight from GitHub 😁 |
was for testing, but is no longer needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR @ironswordX-dev!
I have some notes about the changes requested:
- Minimum Node.js version supported currently is Node 0.8, so ES6 is not supported
- I am not sure what are the bugs solved on this PR, can you provide more context (or even tests) to help us understand it better?
Thanks a lot in advance!
I was trying to use the cookie parser module, but I realized it was making all requests to my site to just be stuck waiting for the server response, and I found there were a few bugs in the code. I fixed them in this pull request, though.