Skip to content

Commit

Permalink
wrapped expect: Back to just using addAdditionalPromiseMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Apr 26, 2022
1 parent 0ec6f84 commit 66bac36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/createTopLevelExpect.js
Original file line number Diff line number Diff line change
Expand Up @@ -1338,9 +1338,9 @@ expectPrototype._createWrappedExpect = function (
if (arguments.length === 0) {
throw new Error('The expect function requires at least one parameter.');
} else if (arguments.length === 1) {
return parentExpect._camelCaser(
context,
parentExpect.findTypeOf(subject),
return addAdditionalPromiseMethods(
makePromise.resolve(subject),
wrappedExpect,
subject
);
} else if (typeof testDescriptionString === 'function') {
Expand Down

0 comments on commit 66bac36

Please sign in to comment.