-
Notifications
You must be signed in to change notification settings - Fork 309
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
Use [REDACTED] instead of [SANITIZED] when cleaning errors #515
Conversation
test/errors.tests.js
Outdated
@@ -28,11 +28,11 @@ describe('Errors', function() { | |||
const sanitizedError = errors.sanitizeErrorRequestData(error); |
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.
do we want to update these variables as well?
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.
Updated.
test/errors.tests.js
Outdated
@@ -101,7 +101,7 @@ describe('Errors', function() { | |||
}); | |||
|
|||
it('should sanitize the original error sensitive information', function() { |
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.
and the messages?
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.
Updated.
test/errors.tests.js
Outdated
@@ -52,8 +52,8 @@ describe('Errors', function() { | |||
const sanitizedError = errors.sanitizeErrorRequestData(error); |
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.
also here
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.
Updated.
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.
I don't know if you want to update the test descriptions, properties, and functions that are still using the word sanitize. As long as they are not exported in the lib you could. Not a blocker 👍
Makes sense to update it now; pushed a new commit to do that. |
Testing
Checklist