Skip to content

Commit

Permalink
expand test a little
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Apr 24, 2019
1 parent 76c70d6 commit 2214a3e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/browser/fragments.test.js
Expand Up @@ -109,6 +109,7 @@ describe('Fragment', () => {
};
expect(fn).not.to.throw();
expect(scratch.innerHTML).to.equal('<span>world</span>');

render((
<Fragment>
<span>world</span>
Expand All @@ -117,6 +118,15 @@ describe('Fragment', () => {
</Fragment>
), scratch);
expect(scratch.innerHTML).to.equal('<span>world</span><span>world</span>');

render((
<Fragment>
<span>world</span>
Hello
<span>world</span>
</Fragment>
), scratch);
expect(scratch.innerHTML).to.equal('<span>world</span>Hello<span>world</span>');
});

it('should handle reordering components that return Fragments #1325', () => {
Expand Down

0 comments on commit 2214a3e

Please sign in to comment.