Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

don’t return from reducer without state #9949

Merged
merged 2 commits into from
Jul 13, 2017
Merged

don’t return from reducer without state #9949

merged 2 commits into from
Jul 13, 2017

Conversation

bridiver
Copy link
Collaborator

@bridiver bridiver commented Jul 11, 2017

fix #9948

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.

Test Plan:

Reviewer Checklist:

Tests

  • Adequate test coverage exists to prevent regressions
  • Tests should be independent and work correctly when run individually or as a suite ref
  • New files have MPL2 license header

@bridiver bridiver added the bug label Jul 11, 2017
@bridiver bridiver added this to the 0.18.x (Beta Channel) milestone Jul 11, 2017
@bridiver bridiver self-assigned this Jul 11, 2017
@bridiver bridiver requested review from ayumi and bbondy July 11, 2017 01:48
Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

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

Change LGTM 😄 👍

…rned

Statement coverage from 0% to 56.13%
Branch coverage from 0% to 41.75%
Function coverage from 0% to 22.92%
Line coverage from 0% to 56.4%

Auditors: @bridiver

Test Plan: `npm run unittest -- --grep="menu reducer unit tests"`
@bsclifton
Copy link
Member

bsclifton commented Jul 13, 2017

@bridiver I added unit tests for app/browser/menu 😄

  • Statement coverage from 0% to 56.13%
  • Branch coverage from 0% to 41.75%
  • Function coverage from 0% to 22.92%
  • Line coverage from 0% to 56.4%

Notice that I adjusted some code to check for falsey conditions to prevent crash if the field is missing.

@bridiver bridiver merged commit d3f96bb into master Jul 13, 2017
@bsclifton bsclifton deleted the issue-9948 branch July 14, 2017 05:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

keyboard shortcut for undo last closed frame with no last closed frame causes an error
2 participants