From 033b556953c53e6b731c751853185638100889d1 Mon Sep 17 00:00:00 2001 From: Victor Diez Date: Thu, 7 Nov 2024 16:29:59 +0100 Subject: [PATCH] Improve S125 test: Cover decorators and JSX --- packages/jsts/src/rules/S125/unit.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/jsts/src/rules/S125/unit.test.ts b/packages/jsts/src/rules/S125/unit.test.ts index bb3f686e6cd..9143c4b6590 100644 --- a/packages/jsts/src/rules/S125/unit.test.ts +++ b/packages/jsts/src/rules/S125/unit.test.ts @@ -167,8 +167,12 @@ ruleTester.run('Sections of code should not be commented out', rule, { { code: ` /* // nested comment + @annotation + class MyClass {} + foo(a, function(){ doSmth(); + const a = }); */`, errors: [ @@ -176,7 +180,7 @@ ruleTester.run('Sections of code should not be commented out', rule, { message: 'Remove this commented out code.', line: 2, column: 9, - endLine: 6, + endLine: 10, endColumn: 12, }, ],