Skip to content

Commit fd86d47

Browse files
committed
covg
1 parent 19623da commit fd86d47

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/__tests__/lib/rules/prefer-to-have-style.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ ruleTester.run("prefer-to-have-style", rule, {
9191
errors,
9292
output: `expect(el).toHaveStyle(\`background-color\`)`,
9393
},
94+
{
95+
code: `expect(el.style).not.toContain(\`background-color\`)`,
96+
errors,
97+
output: `expect(el).not.toHaveStyle(\`background-color\`)`,
98+
},
9499
{
95100
code: `expect(el.style).not.toContain("background-color")`,
96101
errors,

0 commit comments

Comments
 (0)