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

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/packages/npm-test-dir-bin/test.js')
-rw-r--r--test/packages/npm-test-dir-bin/test.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/packages/npm-test-dir-bin/test.js b/test/packages/npm-test-dir-bin/test.js
new file mode 100644
index 000000000..e4ee83f9e
--- /dev/null
+++ b/test/packages/npm-test-dir-bin/test.js
@@ -0,0 +1,5 @@
+require('child_process').spawn('dir-bin', [], {
+ env: process.env }).on('exit', function (code) {
+ if (code) throw new Error('exited badly with code = ' + code)
+})
+