Skip to content

Commit

Permalink
Add failing test for comment-no-loud
Browse files Browse the repository at this point in the history
This rule only seems to work when a comment is the first item in a CSS
file. This test fails to demonstrate the problem.
  • Loading branch information
kevindew committed May 26, 2020
1 parent ed02651 commit 5178638
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/rules/comment-no-loud/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,23 @@ testRule(rule, {
line: 2,
column: 9,
message: messages.expected
},
{
code: `
i {
font-style: italic;
}
/* comment line */
b {
font-weight: bold;
}
`,
description: "Comment sandwiched between rules",
line: 6,
column: 7,
message: messages.expected
}
]
});

0 comments on commit 5178638

Please sign in to comment.