test: increase coverage for internal/module.js#13673
test: increase coverage for internal/module.js#13673TamasHodi wants to merge 1 commit intonodejs:masterfrom
Conversation
|
Tests should be fine but i was not able to run them locally. |
Both an answer and a nit: Add |
|
Ohh and P.S. 😉 |
75caabb to
afe49c2
Compare
cjihrig
left a comment
There was a problem hiding this comment.
Could you add these changes in a separate file. I don't think we want to lose the things that are currently removed in this PR.
There was a problem hiding this comment.
Something like the following would be far more compact (and likely easier to maintain):
[
['', ''],
['aa', 'aa'],
['#!', ''],
['#!bin/bash', ''],
['#!bin/bash\naa', '\naa']
].forEach((i) => assert.strictEqual(internalModule.stripShebang(i[0]), i[1]));|
@cjihrig I've restored the original test file which was intended to check the availability of the internal modules and moved my refactored tests into a new file. |
|
I've just seen the failing OSX test/build. Did i miss something? |
Don't worry, it's unrelated. |
PR-URL: #13673 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
Landed in 83ebb6d |
|
@TamasHodi congradulations on landing your first contribution |
PR-URL: #13673 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #13673 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>


Add tests for the
stripShebangfunction.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test internal modules