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

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2014-12-22 13:34:43 +0300
committerFeross Aboukhadijeh <feross@feross.org>2014-12-22 13:35:45 +0300
commit9b26274a7c86f920b390204f5776a021238f78a6 (patch)
treedb0e2ace9140362a320d613d8cd8b6bb1c8fe348 /bin
parent26aa682e92ce9894789604623206c436f950570c (diff)
npm test: abort if node tests fail
Diffstat (limited to 'bin')
-rw-r--r--bin/test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/test.js b/bin/test.js
index 33bb300..2fc368b 100644
--- a/bin/test.js
+++ b/bin/test.js
@@ -7,7 +7,7 @@ var runBrowserTests = !process.env.TRAVIS_PULL_REQUEST ||
var node = cp.spawn('npm', ['run', 'test-node'], { stdio: 'inherit' })
node.on('close', function (code) {
- if (runBrowserTests) {
+ if (code === 0 && runBrowserTests) {
var browser = cp.spawn('npm', ['run', 'test-browser'], { stdio: 'inherit' })
browser.on('close', function (code) {
process.exit(code)