[Pkg-javascript-commits] [node-log-driver] 32/49: make sure tests check for global leaks.

Bastien Roucariès rouca at moszumanska.debian.org
Thu Feb 22 12:57:03 UTC 2018


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-log-driver.

commit d88d5ebe2e80a966e7a0450c44f10f281f8e9a70
Author: Gregg Caines <gregg at caines.ca>
Date:   Thu Sep 25 20:38:10 2014 -0700

    make sure tests check for global leaks.
---
 Makefile     | 6 +++---
 package.json | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index f437884..bc70d7f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 REPORTER = spec
 test:
-	@NODE_ENV=test ./node_modules/.bin/mocha -b --reporter $(REPORTER)
+	@NODE_ENV=test ./node_modules/.bin/mocha -b --reporter $(REPORTER) --check-leaks
 
 lint:
 	./node_modules/.bin/jshint ./test ./index.js
@@ -8,13 +8,13 @@ lint:
 test-cov:
 	$(MAKE) lint
 	@NODE_ENV=test ./node_modules/.bin/istanbul cover \
-	./node_modules/mocha/bin/_mocha -- -R spec
+	./node_modules/mocha/bin/_mocha -- -R spec --check-leaks
 
 test-coveralls:
 	echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
 	$(MAKE) test
 	@NODE_ENV=test ./node_modules/.bin/istanbul cover \
-	./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && \
+	./node_modules/mocha/bin/_mocha --check-leaks --report lcovonly -- -R spec && \
 		cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js || true
 
 .PHONY: test
diff --git a/package.json b/package.json
index 0223333..699faef 100644
--- a/package.json
+++ b/package.json
@@ -31,7 +31,7 @@
     "istanbul": "0.2.6",
     "coveralls": "2.10.0",
     "sinon-restore": "1.0.1",
-    "mocha": "1.8.1",
+    "mocha": "1.20.1",
     "should": "1.1.0"
   },
   "engines": {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-log-driver.git



More information about the Pkg-javascript-commits mailing list