Skip to content

Commit c75ec07

Browse files
committed
wrapped expect: Back to just using addAdditionalPromiseMethods
1 parent de3237f commit c75ec07

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
@@ -1349,9 +1349,9 @@ expectPrototype._createWrappedExpect = function (
13491349
if (arguments.length === 0) {
13501350
throw new Error('The expect function requires at least one parameter.');
13511351
} else if (arguments.length === 1) {
1352-
return parentExpect._camelCaser(
1353-
context,
1354-
parentExpect.findTypeOf(subject),
1352+
return addAdditionalPromiseMethods(
1353+
makePromise.resolve(subject),
1354+
wrappedExpect,
13551355
subject
13561356
);
13571357
} else if (typeof testDescriptionString === 'function') {

0 commit comments

Comments
 (0)