Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS-403 Improve S125 test: Cover decorators and JSX #4896

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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