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

Commit c47c4ce

Browse files
Travis Personalanshaw
Travis Person
authored andcommitted
fix: allow passing only to suites with skip lists (#321)
License: MIT Signed-off-by: Travis Person <travis@protocol.ai>
1 parent ef91026 commit c47c4ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/src/utils/mocha.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const isObject = (o) => Object.prototype.toString.call(o) === '[object Object]'
1515
// want to skip/only the whole suite
1616
function getDescribe (config) {
1717
if (config) {
18-
if (config.only === true) return describe.only
1918
if (config.skip === true) return describe.skip
2019

2120
if (isObject(config.skip)) {
@@ -30,6 +29,8 @@ function getDescribe (config) {
3029

3130
return _describe
3231
}
32+
33+
if (config.only === true) return describe.only
3334
}
3435

3536
return describe

0 commit comments

Comments
 (0)