-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix done.fail not passing arguments #3241
Conversation
}; | ||
await queueRunner(options); | ||
|
||
expect(options.fail).toHaveBeenCalledWith('miserably', 'failed'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jwbay it gets called now!
Codecov Report
@@ Coverage Diff @@
## master #3241 +/- ##
=========================================
- Coverage 64.19% 63.6% -0.59%
=========================================
Files 141 175 +34
Lines 5457 6433 +976
Branches 4 4
=========================================
+ Hits 3503 4092 +589
- Misses 1953 2340 +387
Partials 1 1
Continue to review full report at Codecov.
|
* Fix done.fail context issue * Use concat instead of spread to fix node 4
* Fix done.fail context issue * Use concat instead of spread to fix node 4
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Fixes
done.fail()
not passing arguments. Arrow functions don't bindarguments
, so I used a regular function instead.Thanks @jwbay.
Test plan
Added a test for that.