Skip to content

Commit ed68984

Browse files
committed
Clean
1 parent 4ef1622 commit ed68984

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lib/createTopLevelExpect.js

+2-10
Original file line numberDiff line numberDiff line change
@@ -1320,14 +1320,9 @@ expectPrototype.setErrorMessage = function (err) {
13201320
err.serializeMessage(this.outputFormat());
13211321
};
13221322

1323-
expectPrototype.addAdditionalPromiseMethods = function (
1324-
promise,
1325-
subject,
1326-
) {
1327-
const stack = new Error('hey').stack;
1323+
expectPrototype.addAdditionalPromiseMethods = function (promise, subject) {
13281324
const wrappedExpect = this;
13291325
const expect = this._topLevelExpect;
1330-
// const expect = this;
13311326
promise.and = function (...args) {
13321327
function executeAnd() {
13331328
if (expect.findTypeOf(args[0]).is('expect.it')) {
@@ -1581,10 +1576,7 @@ expectPrototype._executeExpect = function (
15811576
} else {
15821577
result = makePromise.resolve(result);
15831578
}
1584-
return wrappedExpect.addAdditionalPromiseMethods(
1585-
result,
1586-
subject,
1587-
);
1579+
return wrappedExpect.addAdditionalPromiseMethods(result, subject);
15881580
};
15891581

15901582
expectPrototype._camelCaser = function (context, subjectType, subject) {

0 commit comments

Comments
 (0)