Skip to content

Commit e42d0f0

Browse files
committed
fix(no-node-access): remove redundant unit test
1 parent 81edb3e commit e42d0f0

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/lib/rules/no-node-access.test.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -143,25 +143,6 @@ ruleTester.run(RULE_NAME, rule, {
143143
code: `
144144
import { render } from '@testing-library/react';
145145
146-
function Wrapper(props) {
147-
// this should NOT be reported
148-
if (props.children) {
149-
// ...
150-
}
151-
152-
// this should NOT be reported
153-
return <div className="wrapper-class">{props.children}</div>
154-
};
155-
156-
render(<Wrapper><SomeComponent /></Wrapper>);
157-
expect(screen.getByText('SomeComponent')).toBeInTheDocument();
158-
`,
159-
},
160-
{
161-
// Example from discussions in issue #386
162-
code: `
163-
import { render } from '@testing-library/react';
164-
165146
function Wrapper({ children }) {
166147
// this should NOT be reported
167148
if (children) {

0 commit comments

Comments
 (0)