Skip to content

Commit b5e2ad2

Browse files
committed
test: remove errors from valid test
1 parent ac2fd41 commit b5e2ad2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/no-pass-data-to-parent.test.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ new MyRuleTester().run("no-pass-data-to-parent", rule, {
5959
)
6060
}
6161
`,
62-
errors: [
63-
{
64-
messageId: "avoidPassingDataToParent",
65-
},
66-
],
6762
},
6863
{
6964
// This might be an anti-pattern in the first place...
@@ -100,7 +95,7 @@ new MyRuleTester().run("no-pass-data-to-parent", rule, {
10095
10196
useEffect(() => {
10297
if (data.error) {
103-
history.push(data.error);
98+
history.push('/error');
10499
}
105100
}, [data]);
106101
});

0 commit comments

Comments
 (0)