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

Commit

Permalink
fix: allow passing only to suites with skip lists (#321)
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Travis Person <travis@protocol.ai>
  • Loading branch information
Travis Person authored and alanshaw committed Jul 3, 2018
1 parent ef91026 commit c47c4ce
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit c47c4ce

Please sign in to comment.