Description: Fix test.js to use nodejs
 In Debian, nodejs is the name of the node executable. This fix was
 required to enable the upstream tests to pass.
Forwarded: not-needed
Author: Ross Gammon <rossgammon@mail.dk>

--- a/test/test.js
+++ b/test/test.js
@@ -67,7 +67,7 @@
             });
 
             it('should support shebang in executables without /usr/bin/env', function (next) {
-                var nodejs = which.sync('node');
+                var nodejs = which.sync('nodejs');
                 var file = __dirname + '/fixtures/shebang_noenv';
 
                 fs.writeFileSync(file, '#!' + nodejs + '\n\nprocess.stdout.write(\'shebang works!\');', {
@@ -95,7 +95,7 @@
             it('should support shebang in executables with relative path', function (next) {
                 var executable = './' + path.relative(process.cwd(), __dirname + '/fixtures/shebang');
 
-                fs.writeFileSync(__dirname + '/tmp/shebang', '#!/usr/bin/env node\n\nprocess.stdout.write(\'yeah\');',
+                fs.writeFileSync(__dirname + '/tmp/shebang', '#!/usr/bin/env nodejs\n\nprocess.stdout.write(\'yeah\');',
                     { mode: parseInt('0777', 8) });
                 process.env.PATH = path.normalize(__dirname + '/tmp/') + path.delimiter + process.env.PATH;
 
@@ -111,7 +111,7 @@
             it('should support shebang in executables with relative path that starts with `..`', function (next) {
                 var executable = '../' + path.basename(process.cwd()) + '/' + path.relative(process.cwd(), __dirname + '/fixtures/shebang');
 
-                fs.writeFileSync(__dirname + '/tmp/shebang', '#!/usr/bin/env node\n\nprocess.stdout.write(\'yeah\');',
+                fs.writeFileSync(__dirname + '/tmp/shebang', '#!/usr/bin/env nodejs\n\nprocess.stdout.write(\'yeah\');',
                     { mode: parseInt('0777', 8) });
                 process.env.PATH = path.normalize(__dirname + '/tmp/') + path.delimiter + process.env.PATH;
 
@@ -125,7 +125,7 @@
             });
 
             it('should support shebang in executables with extensions', function (next) {
-                fs.writeFileSync(__dirname + '/tmp/shebang_' + method + '.js', '#!/usr/bin/env node\n\nprocess.stdout.write(\'shebang with \
+                fs.writeFileSync(__dirname + '/tmp/shebang_' + method + '.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;
 
@@ -178,7 +178,7 @@
             });
 
             it('should handle arguments with quotes', function (next) {
-                buffered(method, 'node', [
+                buffered(method, 'nodejs', [
                     __dirname + '/fixtures/echo',
                     '"foo"',
                     'foo"bar"foo',
@@ -192,7 +192,7 @@
             });
 
             it('should handle empty arguments', function (next) {
-                buffered(method, 'node', [
+                buffered(method, 'nodejs', [
                     __dirname + '/fixtures/echo',
                     'foo',
                     '',
@@ -217,7 +217,7 @@
             });
 
             it('should handle non-string arguments', function (next) {
-                buffered(method, 'node', [
+                buffered(method, 'nodejs', [
                     __dirname + '/fixtures/echo',
                     1234,
                 ], function (err, data, code) {
@@ -230,7 +230,7 @@
             });
 
             it('should handle arguments with spaces', function (next) {
-                buffered(method, 'node', [
+                buffered(method, 'nodejs', [
                     __dirname + '/fixtures/echo',
                     'I am',
                     'André Cruz',
@@ -244,7 +244,7 @@
             });
 
             it('should handle arguments with \\"', function (next) {
-                buffered(method, 'node', [
+                buffered(method, 'nodejs', [
                     __dirname + '/fixtures/echo',
                     'foo',
                     '\\"',
@@ -259,7 +259,7 @@
             });
 
             it('should handle arguments that end with \\', function (next) {
-                buffered(method, 'node', [
+                buffered(method, 'nodejs', [
                     __dirname + '/fixtures/echo',
                     'foo',
                     'bar\\',
@@ -274,7 +274,7 @@
             });
 
             it('should handle arguments that contain shell special chars', function (next) {
-                buffered(method, 'node', [
+                buffered(method, 'nodejs', [
                     __dirname + '/fixtures/echo',
                     'foo',
                     '()',
@@ -367,7 +367,7 @@
             });
 
             it('should give correct exit code', function (next) {
-                buffered(method, 'node', [__dirname + '/fixtures/exit'], function (err, data, code) {
+                buffered(method, 'nodejs', [__dirname + '/fixtures/exit'], function (err, data, code) {
                     expect(err).to.not.be.ok();
                     expect(code).to.be(25);
 
