Skip to content

Commit 504d680

Browse files
committed
Support camel case syntax within an assertion
Removes support for expect(oneArg) returning an object with .and etc., but we can maybe get that back later
1 parent 2730690 commit 504d680

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/createTopLevelExpect.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,11 +1301,7 @@ expectPrototype._createWrappedExpect = function (
13011301
if (arguments.length === 0) {
13021302
throw new Error('The expect function requires at least one parameter.');
13031303
} else if (arguments.length === 1) {
1304-
return addAdditionalPromiseMethods(
1305-
makePromise.resolve(subject),
1306-
wrappedExpect,
1307-
subject
1308-
);
1304+
return parentExpect._camelCaser(subject, context);
13091305
} else if (typeof testDescriptionString === 'function') {
13101306
wrappedExpect.errorMode = 'nested';
13111307
return wrappedExpect.withError(

0 commit comments

Comments
 (0)