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 0ec6f84 commit 66bac36Copy full SHA for 66bac36
lib/createTopLevelExpect.js
@@ -1338,9 +1338,9 @@ expectPrototype._createWrappedExpect = function (
1338
if (arguments.length === 0) {
1339
throw new Error('The expect function requires at least one parameter.');
1340
} else if (arguments.length === 1) {
1341
- return parentExpect._camelCaser(
1342
- context,
1343
- parentExpect.findTypeOf(subject),
+ return addAdditionalPromiseMethods(
+ makePromise.resolve(subject),
+ wrappedExpect,
1344
subject
1345
);
1346
} else if (typeof testDescriptionString === 'function') {
0 commit comments