-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed
Labels
testIssues and PRs related to the tests.Issues and PRs related to the tests.
Description
There are several places in the codebase where lines are longer than 80 characters but could be wrapped.
- https://github.com/nodejs/node/blob/master/test/addons-napi/test_properties/test.js#L4
- https://github.com/nodejs/node/blob/master/test/parallel/test-process-versions.js#L32
- https://github.com/nodejs/node/blob/master/test/parallel/test-repl.js#L197
- https://github.com/nodejs/node/blob/master/test/parallel/test-repl.js#L207
- https://github.com/nodejs/node/blob/master/test/parallel/test-v8-serdes.js#L143
- https://github.com/nodejs/node/blob/master/test/parallel/test-whatwg-url-properties.js#L47
- https://github.com/nodejs/node/blob/master/test/parallel/test-whatwg-url-properties.js#L122
- https://github.com/nodejs/node/blob/master/test/parallel/test-zlib-not-string-or-buffer.js#L10
Possible solutions:
- Simply wrap the line before the RegExp
- Define the RegExp as a const before it's use
Mitigations:
- It some case the RegExp alone is > 80 chars, but the line could still be wrapped so it won't be longer than neccecery.
Metadata
Metadata
Assignees
Labels
testIssues and PRs related to the tests.Issues and PRs related to the tests.