Commit ec364fa3 authored by Ross Gammon's avatar Ross Gammon

Add node-rimraf build dependency for tests & patch the new test

The new test needed the usual node > nodejs conversion for Debian
parent 8633b5b8
......@@ -9,7 +9,8 @@ Build-Depends: debhelper (>= 9),
node-glob,
mocha,
node-which,
node-expect.js
node-expect.js,
node-rimraf
Standards-Version: 3.9.6
Homepage: https://github.com/IndigoUnited/node-cross-spawn-async#readme
Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-cross-spawn-async.git
......
......@@ -15,6 +15,15 @@ Author: Ross Gammon <rossgammons@mail.dk>
var file = __dirname + '/fixtures/shebang_noenv';
fs.writeFileSync(file, '#!' + nodejs + '\n\nprocess.stdout.write(\'shebang works!\');', {
@@ -100,7 +100,7 @@
});
it('should support shebang in executables with extensions', function (next) {
- fs.writeFileSync(__dirname + '/tmp/shebang.js', '#!/usr/bin/env node\n\nprocess.stdout.write(\'shebang with extension\');', { mode: parseInt('0777', 8) });
+ fs.writeFileSync(__dirname + '/tmp/shebang.js', '#!/usr/bin/env nodejs\n\nprocess.stdout.write(\'shebang with extension\');', { mode: parseInt('0777', 8) });
process.env.PATH = path.normalize(__dirname + '/tmp/') + path.delimiter + process.env.PATH;
buffered(__dirname + '/tmp/shebang.js', function (err, data, code) {
@@ -152,7 +152,7 @@
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment