Uh oh!
There was an error while loading. Please reload this page.
test: increase coverage for internal/module.js - #13673
Conversation
TamasHodi
commented
Jun 14, 2017
Tests should be fine but i was not able to run them locally. |
refack
commented
Jun 14, 2017
Both an answer and a nit: Add |
refack
commented
Jun 14, 2017
Ohh and P.S. 😉 |
75caabb to
afe49c2Compare
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]));TamasHodi
commented
Jun 14, 2017
@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. |
refack
commented
Jun 14, 2017
TamasHodi
commented
Jun 15, 2017
I've just seen the failing OSX test/build. Did i miss something? |
refack
commented
Jun 15, 2017
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>
jasnell
commented
Jun 16, 2017
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