From 8799e898bf164dc004b5339e42470c8d34ab0f97 Mon Sep 17 00:00:00 2001 From: vvo Date: Tue, 5 Jan 2016 17:28:58 +0100 Subject: [PATCH] test(astnode.js): avoid skipping tests having node.js inside This commit makes the test suite run test/specs/jsdoc/src/astnode.js It was previously skipped because of the runtime being node and astnode.js containing "node".. I even wonder if its still relevant to try to support different runtime, but that's for another PR I guess. --- test/spec-collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/spec-collection.js b/test/spec-collection.js index 99b92b3a..a2cd6de7 100644 --- a/test/spec-collection.js +++ b/test/spec-collection.js @@ -52,7 +52,7 @@ function isValidSpec(file, matcher) { // ...match the matcher matcher.test( path.basename(file) ) && // ...be relevant to the current runtime - file.indexOf(skipPath) === -1; + file.indexOf('/' + skipPath + '/') === -1; } catch (e) { result = false;