cookie-parser icon indicating copy to clipboard operation
cookie-parser copied to clipboard

A few bugfixes

Open ironswordX-dev opened this issue 1 year ago • 6 comments

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.

ironswordX-dev avatar Sep 09 '23 15:09 ironswordX-dev

What tests?

ironswordX-dev avatar Sep 09 '23 15:09 ironswordX-dev

What tests?

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.

dougwilson avatar Sep 09 '23 15:09 dougwilson

What tests?

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

ironswordX-dev avatar Sep 09 '23 19:09 ironswordX-dev

Also, most of the GitHub tests failed, but most of the 1x.x errors is because I did not put a space at the beginning of a comment

image

ironswordX-dev avatar Sep 09 '23 19:09 ironswordX-dev

Also, most of the GitHub tests failed, but most of the 1x.x errors is because I did not put a space at the beginning of a comment

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 npm run lint locally to see the code formatting issue to correct those.

dougwilson avatar Sep 09 '23 19:09 dougwilson

I was actually just editing it straight from GitHub 😁

ironswordX-dev avatar Sep 09 '23 22:09 ironswordX-dev