Skip to content

Commit

Permalink
chore: remove unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
keiya01 committed Mar 30, 2021
1 parent d84fd6d commit 688bb88
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,24 +375,6 @@ test('should invoke console.warn when it has anonymous function component', asyn
await wait(() => expect(console.warn).toBeCalledTimes(2));
});

test('should invoke console.warn when it has anonymous class component', async () => {
const Component = React.memo(
class extends React.Component {
render() {
return <p>test</p>;
}
},
);

const tools = perf(React);
tools.renderCount;
tools.renderTime;

render(<Component />);

await wait(() => expect(console.warn).toBeCalledTimes(1));
});

test('should not set value when property is not defined', async () => {
jest.spyOn(window, 'Proxy').mockImplementation((target) => target);

Expand Down

0 comments on commit 688bb88

Please sign in to comment.