Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Allow passing only to suites with skip lists #321

Merged
merged 1 commit into from
Jul 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion js/src/utils/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -30,6 +29,8 @@ function getDescribe (config) {

return _describe
}

if (config.only === true) return describe.only
}

return describe
Expand Down