Skip to content

Commit

Permalink
test: add correct test cases with css-in-js
Browse files Browse the repository at this point in the history
  • Loading branch information
vankop committed Sep 28, 2019
1 parent 11dba3d commit 8a9d4d9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lib/rules/no-eol-whitespace/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -668,3 +668,28 @@ testRule(rule, {
},
],
});

testRule(rule, {
ruleName,
syntax: 'css-in-js',
config: [true],

accept: [
{
code: `
export const a = styled.div\`
a {}
\`;
export const b = styled.div\`
a {}
\`;
`,
},
{
code: `export default <a style={{
width: 'calc(100% - 80px)'
}} />;`,
},
],
});

0 comments on commit 8a9d4d9

Please sign in to comment.