Closed blambeau closed 8 years ago
Thanks a lot. Truly makes a lot of sense.
Also pushed a fix for the process.argv
problem.
Oh, just noticed that yield
is a reserved word. Replaced it with invoked
in the test (2b171a9).
Sorry about that, did not know yield was reserved in javascript/node.
Hey @znerol,
This pull request factorizes
checkfile
to reuse & test it.For the record, the binaries in bin are currently broken on my node.js installation, for two reasons at least:
path.existsSync
needs to be replaced byfs.existsSync
(done in this commit)process.ARGV
needs to be replaced byprocess.argv
(is that an expected change in the node.js world?)I think that factorizing parts and testing them is probably the way to go, right?