File tree 1 file changed +2
-10
lines changed
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) {
1320
1320
err . serializeMessage ( this . outputFormat ( ) ) ;
1321
1321
} ;
1322
1322
1323
- expectPrototype . addAdditionalPromiseMethods = function (
1324
- promise ,
1325
- subject ,
1326
- ) {
1327
- const stack = new Error ( 'hey' ) . stack ;
1323
+ expectPrototype . addAdditionalPromiseMethods = function ( promise , subject ) {
1328
1324
const wrappedExpect = this ;
1329
1325
const expect = this . _topLevelExpect ;
1330
- // const expect = this;
1331
1326
promise . and = function ( ...args ) {
1332
1327
function executeAnd ( ) {
1333
1328
if ( expect . findTypeOf ( args [ 0 ] ) . is ( 'expect.it' ) ) {
@@ -1581,10 +1576,7 @@ expectPrototype._executeExpect = function (
1581
1576
} else {
1582
1577
result = makePromise . resolve ( result ) ;
1583
1578
}
1584
- return wrappedExpect . addAdditionalPromiseMethods (
1585
- result ,
1586
- subject ,
1587
- ) ;
1579
+ return wrappedExpect . addAdditionalPromiseMethods ( result , subject ) ;
1588
1580
} ;
1589
1581
1590
1582
expectPrototype . _camelCaser = function ( context , subjectType , subject ) {
You can’t perform that action at this time.
0 commit comments