Skip to content

Commit b81c370

Browse files
committed
fix codecov error with untested path
1 parent 81b82d3 commit b81c370

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: tests/lib/rules/jsx-no-constructed-context-values.js

+8
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,14 @@ ruleTester.run('react-no-constructed-context-values', rule, {
147147
);
148148
`,
149149
},
150+
{
151+
code: `
152+
// Passes because the context is not a provider
153+
function Component() {
154+
return <MyContext.Consumer value={{ foo: 'bar' }} />;
155+
}
156+
`,
157+
},
150158
{
151159
code: `
152160
import React from 'react';

0 commit comments

Comments
 (0)