Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/tap/config-edit.js')
-rw-r--r--deps/npm/test/tap/config-edit.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/deps/npm/test/tap/config-edit.js b/deps/npm/test/tap/config-edit.js
index f9e09aba3a7..7d6eb2588d4 100644
--- a/deps/npm/test/tap/config-edit.js
+++ b/deps/npm/test/tap/config-edit.js
@@ -8,7 +8,7 @@ var common = require('../common-tap.js')
var pkg = path.resolve(__dirname, 'npm-global-edit')
-var editorSrc = function () {/*
+var editorSrc = function () { /*
#!/usr/bin/env node
var fs = require('fs')
if (fs.existsSync(process.argv[2])) {
@@ -17,7 +17,7 @@ if (fs.existsSync(process.argv[2])) {
console.log('error')
process.exit(1)
}
-*/}.toString().split('\n').slice(1, -1).join('\n')
+*/ }.toString().split('\n').slice(1, -1).join('\n')
var editorPath = path.join(pkg, 'editor')
test('setup', function (t) {
@@ -38,7 +38,9 @@ test('saving configs', function (t) {
cwd: pkg,
env: {
PATH: process.env.PATH,
- EDITOR: editorPath
+ // We rely on the cwd + relative path combo here because otherwise,
+ // this test will break if there's spaces in the editorPath
+ EDITOR: 'node editor'
}
}
common.npm(