test: change the repeat Buffer.from('blerg'); statments#28372
test: change the repeat Buffer.from('blerg'); statments#28372themiken wants to merge 1 commit intonodejs:masterfrom
Conversation
|
Welcome @themiken and thanks for the pull request! I imagine this was given as an assignment at code-and-learn and I won't block this, but I do wish to comment in case someone sees this kind of change and decides to look for similar changes in the test code base: Honestly I think these kinds of changes make the tests more difficult to read and understand, not easier. If the buffer were meaningful, then abstracting it to a variable would make sense. But when it's just "I need a buffer, any buffer, to use in this test", inlining |
|
Landed in 04cf202 |
PR-URL: nodejs#28372 Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
|
Thanks for the contribution! 🎉 (If you're interested in other possible contributions to Node.js but don't have a good idea of where to start looking, some ideas are posted at https://www.nodetodo.org/next-steps/.) |
PR-URL: #28372 Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes