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

LDS: Improve Error Handling #803

Merged
merged 7 commits into from
Apr 24, 2019
Merged

LDS: Improve Error Handling #803

merged 7 commits into from
Apr 24, 2019

Conversation

dplewis
Copy link
Member

@dplewis dplewis commented Apr 24, 2019

Fixes: #773

Should we log key, values?

Console.log vs warn vs error?

Fixes: #773

Should we log key, values?

Console.log vs warn vs error?
@dplewis dplewis requested a review from acinader April 24, 2019 15:57
@acinader
Copy link
Contributor

test failing

@codecov
Copy link

codecov bot commented Apr 24, 2019

Codecov Report

Merging #803 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #803      +/-   ##
==========================================
+ Coverage   92.03%   92.05%   +0.02%     
==========================================
  Files          54       54              
  Lines        4920     4922       +2     
  Branches     1092     1092              
==========================================
+ Hits         4528     4531       +3     
+ Misses        392      391       -1
Impacted Files Coverage Δ
src/LocalDatastoreController.browser.js 100% <100%> (+2.63%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1fe021b...060731d. Read the comment docs.

@dplewis
Copy link
Member Author

dplewis commented Apr 24, 2019

@acinader After much trial and error, I discovered with the latest jest / jsdom you can't spy after mocking localStorage. It is already set in window.localStorage by jest. No need to mock it.

Weird because every test I tried ran locally.

Copy link
Contributor

@acinader acinader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dplewis dplewis merged commit 5405703 into master Apr 24, 2019
@dplewis dplewis deleted the lds-catch-browser branch April 24, 2019 19:58
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.

Failed to get object from local datastore
2 participants