-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
test: use template literals in test-string-decoder #15884
test: use template literals in test-string-decoder #15884
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.
LGTM
test/parallel/test-string-decoder.js
Outdated
'Write sequence: ' + JSON.stringify(sequence) + '\n' + | ||
'Full Decoder State: ' + inspect(decoder); | ||
`Expected "${unicodeEscape(expected)}", ` + | ||
`but got "${unicodeEscape(output)}"\n ` + |
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.
Nit: there seems to be a trailing space here that wasn't present previously.
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.
Good catch!
`test/parallel/test-string-decoder.js` used to use string concatenation this was migrated to use template literals. When concatenation involved a newline we kept string concatenation, or to keep below 80 charters per line.
0e8d4b9
to
4cd32ba
Compare
`test/parallel/test-string-decoder.js` used to use string concatenation this was migrated to use template literals. When concatenation involved a newline we kept string concatenation, or to keep below 80 charters per line. PR-URL: nodejs#15884 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
Landed in 3784b2d. |
`test/parallel/test-string-decoder.js` used to use string concatenation this was migrated to use template literals. When concatenation involved a newline we kept string concatenation, or to keep below 80 charters per line. PR-URL: nodejs/node#15884 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
Nice!! |
`test/parallel/test-string-decoder.js` used to use string concatenation this was migrated to use template literals. When concatenation involved a newline we kept string concatenation, or to keep below 80 charters per line. PR-URL: #15884 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
`test/parallel/test-string-decoder.js` used to use string concatenation this was migrated to use template literals. When concatenation involved a newline we kept string concatenation, or to keep below 80 charters per line. PR-URL: #15884 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
`test/parallel/test-string-decoder.js` used to use string concatenation this was migrated to use template literals. When concatenation involved a newline we kept string concatenation, or to keep below 80 charters per line. PR-URL: #15884 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
`test/parallel/test-string-decoder.js` used to use string concatenation this was migrated to use template literals. When concatenation involved a newline we kept string concatenation, or to keep below 80 charters per line. PR-URL: #15884 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
test/parallel/test-string-decoder.js
used to use string concatenationthis was migrated to use template literals. When concatenation
involved a newline we kept string concatenation, or to keep below 80
charters per line.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test