Skip to content

Commit

Permalink
fix: change test for wrapper.text
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Rodionov committed Feb 2, 2016
1 parent 37b8479 commit 96044a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/portal_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ describe('react-portal', () => {
});

it('should render the props.openByClickOn element', () => {
const openByClickOn = <button>button</button>;
const text = `open by click on me`;
const openByClickOn = <button>${text}</button>;
const wrapper = mount(<Portal openByClickOn={openByClickOn}><p>Hi</p></Portal>);
assert(wrapper.contains(openByClickOn));
assert(wrapper.text(text));
});

it('should open portal when clicking openByClickOn element', () => {
Expand Down

0 comments on commit 96044a3

Please sign in to comment.