Skip to content

Commit

Permalink
Remove copied test from core
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Oct 6, 2022
1 parent aa12b3c commit 9ec2dc9
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions test/render.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1271,33 +1271,6 @@ describe('render', () => {
});

describe('vnode masks (useId)', () => {
it('should work with Fragments', () => {
const ids = [];
function Foo() {
const id = useId();
ids.push(id);
return <p>{id}</p>;
}

function Bar(props) {
return props.children;
}

function App() {
return (
<Bar>
<Foo />
<Fragment>
<Foo />
</Fragment>
</Bar>
);
}

render(<App />);
expect(ids[0]).not.to.equal(ids[1]);
});

it('should skip component top level Fragment child', () => {
const Wrapper = ({ children }) => <Fragment>{children}</Fragment>;

Expand Down

0 comments on commit 9ec2dc9

Please sign in to comment.