From fd3c4e7f6c81493fb8c3f5ce36d8eee67597674c Mon Sep 17 00:00:00 2001 From: Travis Person Date: Mon, 2 Jul 2018 15:56:16 -0700 Subject: [PATCH] Allow passing only to suites with skip lists License: MIT Signed-off-by: Travis Person --- js/src/utils/mocha.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/src/utils/mocha.js b/js/src/utils/mocha.js index e1398022b..9ea71a0fa 100644 --- a/js/src/utils/mocha.js +++ b/js/src/utils/mocha.js @@ -15,7 +15,6 @@ const isObject = (o) => Object.prototype.toString.call(o) === '[object Object]' // want to skip/only the whole suite function getDescribe (config) { if (config) { - if (config.only === true) return describe.only if (config.skip === true) return describe.skip if (isObject(config.skip)) { @@ -30,6 +29,8 @@ function getDescribe (config) { return _describe } + + if (config.only === true) return describe.only } return describe