Skip to content
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

Merged
merged 6 commits into from
Feb 15, 2019
Merged

fedekunze/1977-fix ledger errors #1983

merged 6 commits into from
Feb 15, 2019

Conversation

fedekunze
Copy link
Contributor

@fedekunze fedekunze commented Feb 15, 2019

Closes #1977

Description:

Fixes error bug and makes ledger available on production

screen shot 2019-02-15 at 1 34 11 pm

Thank you! 🚀


For contributor:

  • Added entries in CHANGELOG.md with issue # and GitHub username
  • Reviewed Files changed in the github PR explorer
  • Attach screenshots of the UI components on the PR description (if applicable)
  • Scope of work approved for big PRs

For reviewer:

  • Manually tested the changes on the UI

@codecov
Copy link

codecov bot commented Feb 15, 2019

Codecov Report

Merging #1983 into develop will increase coverage by <.01%.
The diff coverage is 100%.

@@             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
Impacted Files Coverage Δ
...rc/renderer/components/common/TmSessionWelcome.vue 100% <ø> (ø) ⬆️
...c/renderer/components/common/TmSessionHardware.vue 100% <100%> (ø) ⬆️
app/src/renderer/vuex/modules/ledger.js 100% <100%> (ø) ⬆️

@fedekunze fedekunze marked this pull request as ready for review February 15, 2019 12:34
@@ -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`)))
Copy link
Contributor

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

Copy link
Contributor

@sabau sabau left a 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 sabau merged commit 690b6f8 into develop Feb 15, 2019
@sabau sabau deleted the fedekunze/1977-ledger-error branch February 15, 2019 16:06
@faboweb
Copy link
Collaborator

faboweb commented Feb 16, 2019

@sabau Did you manually test the change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ledger error notification body is always {}
3 participants