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

fix: allow skip with object but no reason #318

Merged
merged 1 commit into from
Jul 2, 2018

Conversation

alanshaw
Copy link
Contributor

@alanshaw alanshaw commented Jul 2, 2018

This PR simply fixes getDescribe to also allow you to skip an entire suite using the object syntax ({ name: 'test name', reason: 'why it was skipped' }) but with only a name and not a reason. It also tightens up the check for object so that things also considered 'object' according to typeof don't also get through ahem null, undefined, [] etc.

License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
@ghost ghost assigned alanshaw Jul 2, 2018
@ghost ghost added the in progress label Jul 2, 2018
@alanshaw alanshaw merged commit ef91026 into master Jul 2, 2018
@ghost ghost removed the in progress label Jul 2, 2018
@alanshaw alanshaw deleted the fix/skip-object-no-reason branch July 2, 2018 19:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants