nodejs-optimist/fix-tests.patch
2020-08-20 20:24:46 +08:00

12 lines
413 B
Diff

--- test/parse.js.orig 2016-02-07 21:34:22.432551791 +0100
+++ test/parse.js 2016-02-07 21:34:33.276669826 +0100
@@ -2,7 +2,7 @@
var path = require('path');
var test = require('tap').test;
-var $0 = 'node ./' + path.relative(process.cwd(), __filename);
+var $0 = '/usr/bin/node ./' + path.relative(process.cwd(), __filename);
test('short boolean', function (t) {
var parse = optimist.parse([ '-b' ]);