Skip to content

Commit

Permalink
Add test for term starting with decoration character
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanhunt committed Aug 21, 2022
1 parent 619a6d1 commit 189f0c4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/lib/rules/no-warning-comments.js
Expand Up @@ -428,6 +428,19 @@ ruleTester.run("no-warning-comments", rule, {
}
}
]
},
{
code: "//**TODO term starts with a decoration character",
options: [{ terms: ["*todo"], location: "start", decoration: ["*"] }],
errors: [
{
messageId: "unexpectedComment",
data: {
matchedTerm: "*todo",
comment: "**TODO term starts with a decoration..."
}
}
]
}
]
});

0 comments on commit 189f0c4

Please sign in to comment.