Skip to content

Commit

Permalink
[Tests] add test cases for #1514
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 7, 2018
1 parent 8ec2106 commit 84a7ad8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/enzyme-test-suite/test/ShallowWrapper-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1858,6 +1858,19 @@ describe('shallow', () => {
expect(wrapper.text()).to.equal(String(x));
});
});

describe('text content with curly braces', () => {
it('handles literal strings', () => {
const wrapper = shallow(<div><div>{'{}'}</div></div>);
expect(wrapper.text()).to.equal('{}');
});

it.skip('handles innerHTML', () => {
const wrapper = shallow(<div><div dangerouslySetInnerHTML={{ __html: '{}' }} /></div>);
console.log(wrapper.debug());
expect(wrapper.text()).to.equal('{}');
});
});
});

describe('.props()', () => {
Expand Down

0 comments on commit 84a7ad8

Please sign in to comment.