Blame SOURCES/read-cmd-shim_fix-tests.patch

5240c7
diff --git a/test/integration.js b/test/integration.js
5240c7
index 269f964..443a2cf 100644
5240c7
--- a/test/integration.js
5240c7
+++ b/test/integration.js
5240c7
@@ -19,7 +19,7 @@ test('setup', function (t) {
5240c7
     t.error(er)
5240c7
     cmdShim(testShbang + '.js', testShbang, function (er) {
5240c7
       t.error(er)
5240c7
-      t.done()
5240c7
+      t.end()
5240c7
     })
5240c7
   })
5240c7
 })
5240c7
@@ -28,16 +28,16 @@ test('async-read-no-shbang', function (t) {
5240c7
   t.plan(2)
5240c7
   readCmdShim(testShimCmd, function (er, dest) {
5240c7
     t.error(er)
5240c7
-    t.is(dest, '..\\basic.js')
5240c7
-    t.done()
5240c7
+    t.is(dest, '..\\integration.js')
5240c7
+    t.end()
5240c7
   })
5240c7
 })
5240c7
 
5240c7
 test('sync-read-no-shbang', function (t) {
5240c7
   t.plan(1)
5240c7
   var dest = readCmdShim.sync(testShimCmd)
5240c7
-  t.is(dest, '..\\basic.js')
5240c7
-  t.done()
5240c7
+  t.is(dest, '..\\integration.js')
5240c7
+  t.end()
5240c7
 })
5240c7
 
5240c7
 test('async-read-shbang', function (t) {
5240c7
@@ -45,7 +45,7 @@ test('async-read-shbang', function (t) {
5240c7
   readCmdShim(testShbangCmd, function (er, dest) {
5240c7
     t.error(er)
5240c7
     t.is(dest, 'test-shbang.js')
5240c7
-    t.done()
5240c7
+    t.end()
5240c7
   })
5240c7
 })
5240c7
 
5240c7
@@ -53,23 +53,23 @@ test('sync-read-shbang', function (t) {
5240c7
   t.plan(1)
5240c7
   var dest = readCmdShim.sync(testShbangCmd)
5240c7
   t.is(dest, 'test-shbang.js')
5240c7
-  t.done()
5240c7
+  t.end()
5240c7
 })
5240c7
 
5240c7
 test('async-read-no-shbang-cygwin', function (t) {
5240c7
   t.plan(2)
5240c7
   readCmdShim(testShim, function (er, dest) {
5240c7
     t.error(er)
5240c7
-    t.is(dest, '../basic.js')
5240c7
-    t.done()
5240c7
+    t.is(dest, '../integration.js')
5240c7
+    t.end()
5240c7
   })
5240c7
 })
5240c7
 
5240c7
 test('sync-read-no-shbang-cygwin', function (t) {
5240c7
   t.plan(1)
5240c7
   var dest = readCmdShim.sync(testShim)
5240c7
-  t.is(dest, '../basic.js')
5240c7
-  t.done()
5240c7
+  t.is(dest, '../integration.js')
5240c7
+  t.end()
5240c7
 })
5240c7
 
5240c7
 test('async-read-shbang-cygwin', function (t) {
5240c7
@@ -77,7 +77,7 @@ test('async-read-shbang-cygwin', function (t) {
5240c7
   readCmdShim(testShbang, function (er, dest) {
5240c7
     t.error(er)
5240c7
     t.is(dest, 'test-shbang.js')
5240c7
-    t.done()
5240c7
+    t.end()
5240c7
   })
5240c7
 })
5240c7
 
5240c7
@@ -85,7 +85,7 @@ test('sync-read-shbang-cygwin', function (t) {
5240c7
   t.plan(1)
5240c7
   var dest = readCmdShim.sync(testShbang)
5240c7
   t.is(dest, 'test-shbang.js')
5240c7
-  t.done()
5240c7
+  t.end()
5240c7
 })
5240c7
 
5240c7
 test('async-read-dir', function (t) {
5240c7
@@ -93,14 +93,14 @@ test('async-read-dir', function (t) {
5240c7
   readCmdShim(workDir, function (er) {
5240c7
     t.ok(er)
5240c7
     t.is(er.code, 'EISDIR', "cmd-shims can't be directories")
5240c7
-    t.done()
5240c7
+    t.end()
5240c7
   })
5240c7
 })
5240c7
 
5240c7
 test('sync-read-dir', function (t) {
5240c7
   t.plan(1)
5240c7
   t.throws(function () { readCmdShim.sync(workDir) }, "cmd-shims can't be directories")
5240c7
-  t.done()
5240c7
+  t.end()
5240c7
 })
5240c7
 
5240c7
 test('async-read-not-there', function (t) {
5240c7
@@ -108,14 +108,14 @@ test('async-read-not-there', function (t) {
5240c7
   readCmdShim('/path/to/nowhere', function (er, dest) {
5240c7
     t.ok(er, 'missing files throw errors')
5240c7
     t.is(er.code, 'ENOENT', "cmd-shim file doesn't exist")
5240c7
-    t.done()
5240c7
+    t.end()
5240c7
   })
5240c7
 })
5240c7
 
5240c7
 test('sync-read-not-there', function (t) {
5240c7
   t.plan(1)
5240c7
   t.throws(function () { readCmdShim.sync('/path/to/nowhere') }, "cmd-shim file doesn't exist")
5240c7
-  t.done()
5240c7
+  t.end()
5240c7
 })
5240c7
 
5240c7
 test('async-read-not-shim', function (t) {
5240c7
@@ -123,17 +123,17 @@ test('async-read-not-shim', function (t) {
5240c7
   readCmdShim(__filename, function (er, dest) {
5240c7
     t.ok(er)
5240c7
     t.is(er.code, 'ENOTASHIM', 'shim file specified is not a shim')
5240c7
-    t.done()
5240c7
+    t.end()
5240c7
   })
5240c7
 })
5240c7
 
5240c7
 test('sync-read-not-shim', function (t) {
5240c7
   t.plan(1)
5240c7
   t.throws(function () { readCmdShim.sync(__filename) }, 'shim file specified is not a shim')
5240c7
-  t.done()
5240c7
+  t.end()
5240c7
 })
5240c7
 
5240c7
 test('cleanup', function (t) {
5240c7
   rimraf.sync(workDir)
5240c7
-  t.done()
5240c7
+  t.end()
5240c7
 })