Skip to content

Commit

Permalink
Don't prohibit expect.outputFormat() without a parameter on a nested …
Browse files Browse the repository at this point in the history
…expect

#784 (comment)
  • Loading branch information
papandreou committed Jan 4, 2021
1 parent 55268ea commit 5349b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/createTopLevelExpect.js
Original file line number Diff line number Diff line change
Expand Up @@ -1627,10 +1627,10 @@ expectPrototype.freeze = function () {
};

expectPrototype.outputFormat = function (format) {
this._assertTopLevelExpect();
if (typeof format === 'undefined') {
return this._outputFormat;
} else {
this._assertTopLevelExpect();
this._outputFormat = format;
return this;
}
Expand Down

0 comments on commit 5349b0f

Please sign in to comment.