-
Notifications
You must be signed in to change notification settings - Fork 98
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
fedekunze/1977-fix ledger errors #1983
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1983 +/- ##
===========================================
+ Coverage 94.86% 94.86% +<.01%
===========================================
Files 121 121
Lines 2627 2629 +2
Branches 123 123
===========================================
+ Hits 2492 2494 +2
Misses 126 126
Partials 9 9
|
@@ -123,13 +129,13 @@ describe(`Module: Ledger`, () => { | |||
}) | |||
|
|||
it(`fails if one of the function throws`, async () => { | |||
dispatch = jest.fn(async () => Promise.reject(`error`)) | |||
dispatch = jest.fn(async () => Promise.reject(new Error(`error`))) |
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.
Probably here there are some other occurencies of jest.fn(async
... )
that can be dropped until you are not expecting something from dispatch
using a simple ()
will work
…os/voyager into fedekunze/1977-ledger-error
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.
Let's merge the fix, we can remove the extra jest later
@sabau Did you manually test the change? |
Closes #1977
Description:
Fixes error bug and makes ledger available on production
Thank you! 🚀
For contributor:
CHANGELOG.md
with issue # and GitHub usernameFiles changed
in the github PR explorerFor reviewer: