Skip to content

Commit

Permalink
fix(menu-surface): fix menu surface unit test typo (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Goo authored Oct 4, 2018
1 parent 9eb9bfd commit 8b60622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/menu-surface/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test('update to props.open sets firstFocusableElement_', () => {
removeMenuFromBody(wrapper);
});

test('update to props.open sets firstFocusableElement_', () => {
test('update to props.open sets lastFocusableElement_', () => {
const wrapper = mount(<MenuSurface><button>click</button></MenuSurface>);
wrapper.setProps({open: true});
assert.equal(wrapper.instance().lastFocusableElement_, wrapper.find('button').getDOMNode());
Expand Down

0 comments on commit 8b60622

Please sign in to comment.