Skip to content

Commit 66bac36

Browse files
committed
wrapped expect: Back to just using addAdditionalPromiseMethods
1 parent 0ec6f84 commit 66bac36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/createTopLevelExpect.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,9 +1338,9 @@ expectPrototype._createWrappedExpect = function (
13381338
if (arguments.length === 0) {
13391339
throw new Error('The expect function requires at least one parameter.');
13401340
} else if (arguments.length === 1) {
1341-
return parentExpect._camelCaser(
1342-
context,
1343-
parentExpect.findTypeOf(subject),
1341+
return addAdditionalPromiseMethods(
1342+
makePromise.resolve(subject),
1343+
wrappedExpect,
13441344
subject
13451345
);
13461346
} else if (typeof testDescriptionString === 'function') {

0 commit comments

Comments
 (0)