File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff 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
15901582expectPrototype . _camelCaser = function ( context , subjectType , subject ) {
You can’t perform that action at this time.
0 commit comments