diff --git a/pmd-javascript/src/test/java/net/sourceforge/pmd/lang/ecmascript/rule/codestyle/UnnecessaryBlockTest.java b/pmd-javascript/src/test/java/net/sourceforge/pmd/lang/ecmascript/rule/codestyle/UnnecessaryBlockTest.java index 1ef8340778..ce161d3662 100644 --- a/pmd-javascript/src/test/java/net/sourceforge/pmd/lang/ecmascript/rule/codestyle/UnnecessaryBlockTest.java +++ b/pmd-javascript/src/test/java/net/sourceforge/pmd/lang/ecmascript/rule/codestyle/UnnecessaryBlockTest.java @@ -3,30 +3,5 @@ package net.sourceforge.pmd.lang.ecmascript.rule.codestyle; import net.sourceforge.pmd.testframework.PmdRuleTst; public class UnnecessaryBlockTest extends PmdRuleTst { - @Override - public void setUp() { - // Set up any required configurations or resources before running the tests - } - - - public void testUnnecessaryBlockInImportStatement() { - String code = "import { foo } from 'bar';\n" + - "{\n" + - " // Unnecessary block\n" + - "}\n"; - - // Assert that the PMD rule does not flag the unnecessary block within import statement - addSourceCodeTest(code, 0); - } - - public void testUnnecessaryBlockInDestructuringAssignment() { - String code = "const { a, b } = obj;\n" + - "{\n" + - " // Unnecessary block\n" + - "}\n"; - - // Assert that the PMD rule does not flag the unnecessary block within destructuring assignment - addSourceCodeTest(code, 0); - } - + }