Skip to content

Commit

Permalink
JS-403 Improve S125 test: Cover decorators and JSX (#4896)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdiez authored Nov 8, 2024
1 parent fc94866 commit 4fe1c52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/jsts/src/rules/S125/unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,20 @@ ruleTester.run('Sections of code should not be commented out', rule, {
{
code: `
/* // nested comment
@annotation
class MyClass {}
foo(a, function(){
doSmth();
const a = <bv></bv>
});
*/`,
errors: [
{
message: 'Remove this commented out code.',
line: 2,
column: 9,
endLine: 6,
endLine: 10,
endColumn: 12,
},
],
Expand Down

0 comments on commit 4fe1c52

Please sign in to comment.