Skip to content

Commit

Permalink
[Tests] skip memo tests on non-memo React
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 17, 2021
1 parent 41bf606 commit c8c74a4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -180,7 +180,7 @@ export default function describeIsEmptyRender({
expect(elements.isEmptyRender()).to.equal(!isShallow);
});

it('works on a memoized functional component', () => {
itIf(!!memo, 'works on a memoized functional component', () => {
const Component = memo(() => null);
const wrapper = Wrap(<Component />);
expect(wrapper.debug()).to.equal(isShallow ? '' : '<Memo() />');
Expand Down

0 comments on commit c8c74a4

Please sign in to comment.