Description: rename node to nodejs in tests
Forwarded: not-needed
Last-Update: 2016-11-13
Author: Jérémy Lal <kapouer@melix.org>
--- a/test/bin.js
+++ b/test/bin.js
@@ -33,11 +33,11 @@
 }
 
 t.test('finds node', function (t) {
-  which('node', function (code, signal, out, err) {
+  which('nodejs', function (code, signal, out, err) {
     t.equal(signal, null)
     t.equal(code, 0)
     t.equal(err, '')
-    t.match(out, /[\\\/]node(\.exe)?$/i)
+    t.match(out, /[\\\/]nodejs(\.exe)?$/i)
     t.end()
   })
 })
@@ -53,12 +53,12 @@
 })
 
 t.test('finds node and tap', function (t) {
-  which(['node', 'tap'], function (code, signal, out, err) {
+  which(['nodejs', 'tap'], function (code, signal, out, err) {
     t.equal(signal, null)
     t.equal(code, 0)
     t.equal(err, '')
     t.match(out.split(/[\r\n]+/), [
-      /[\\\/]node(\.exe)?$/i,
+      /[\\\/]nodejs(\.exe)?$/i,
       /[\\\/]tap(\.cmd)?$/i
     ])
     t.end()
@@ -66,12 +66,12 @@
 })
 
 t.test('finds node and tap, but not flergyderp', function (t) {
-  which(['node', 'flergyderp', 'tap'], function (code, signal, out, err) {
+  which(['nodejs', 'flergyderp', 'tap'], function (code, signal, out, err) {
     t.equal(signal, null)
     t.equal(code, 1)
     t.equal(err, '')
     t.match(out.split(/[\r\n]+/), [
-      /[\\\/]node(\.exe)?$/i,
+      /[\\\/]nodejs(\.exe)?$/i,
       /[\\\/]tap(\.cmd)?$/i
     ])
     t.end()
@@ -115,7 +115,7 @@
 })
 
 t.test('complains about unknown flag', function (t) {
-  which(['node', '-sax'], function (code, signal, out, err) {
+  which(['nodejs', '-sax'], function (code, signal, out, err) {
     t.equal(signal, null)
     t.equal(code, 1)
     t.equal(out, '')
