We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de3237f commit c75ec07Copy full SHA for c75ec07
lib/createTopLevelExpect.js
@@ -1349,9 +1349,9 @@ expectPrototype._createWrappedExpect = function (
1349
if (arguments.length === 0) {
1350
throw new Error('The expect function requires at least one parameter.');
1351
} else if (arguments.length === 1) {
1352
- return parentExpect._camelCaser(
1353
- context,
1354
- parentExpect.findTypeOf(subject),
+ return addAdditionalPromiseMethods(
+ makePromise.resolve(subject),
+ wrappedExpect,
1355
subject
1356
);
1357
} else if (typeof testDescriptionString === 'function') {
0 commit comments