Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Simplifies filter by truthy values.

Joshua Appelmanf12e1188d65a
diff --git a/bin/options.js b/bin/options.js
index 3b31798b..b46f8fb1 100644
--- a/bin/options.js
+++ b/bin/options.js
@@ -23,9 +23,7 @@ function getOptions() {
var opts = fs.readFileSync(optsPath, 'utf8')
.trim()
.split(/\s+/)
- .filter(function(value) {
- return value ? true : false;
- });
+ .filter(Boolean);
process.argv = process.argv
.slice(0, 2)