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

Commit

Permalink
fix: allow null skip for subsystems
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
  • Loading branch information
alanshaw committed Jun 27, 2018
1 parent ddc728f commit 5df855c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/utils/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function getDescribe (config) {
if (config.only === true) return describe.only
if (config.skip === true) return describe.skip

if (typeof config.skip === 'object' && config.skip.reason) {
if (config.skip && typeof config.skip === 'object' && config.skip.reason) {
const _describe = (name, impl) => {
describe.skip(`${name} (${config.skip.reason})`, impl)
}
Expand Down

0 comments on commit 5df855c

Please sign in to comment.