Fix last tests
This commit is contained in:
@ -17,7 +17,6 @@ import org.mozilla.javascript.ast.AstRoot;
|
||||
import net.sourceforge.pmd.PMD;
|
||||
import net.sourceforge.pmd.Report;
|
||||
import net.sourceforge.pmd.lang.ast.Node;
|
||||
import net.sourceforge.pmd.lang.ast.Parser.ParserTask;
|
||||
import net.sourceforge.pmd.lang.ecmascript.rule.AbstractEcmascriptRule;
|
||||
|
||||
public class EcmascriptParserTest extends EcmascriptParserTestBase {
|
||||
@ -150,7 +149,7 @@ public class EcmascriptParserTest extends EcmascriptParserTestBase {
|
||||
assertEquals(" I know what I'm doing", root.getAstInfo().getSuppressionComments().get(2));
|
||||
assertEquals(1, root.getAstInfo().getSuppressionComments().size());
|
||||
|
||||
root = js.withParserConfig(p -> p.setProperty(ParserTask.COMMENT_MARKER, "FOOOO"))
|
||||
root = js.withSuppressMarker("FOOOO")
|
||||
.parse("function(x) {\n" + "y = y; //NOPMD xyz\n" + "x = x; //FOOOO I know what I'm doing\n" + "}\n");
|
||||
assertEquals(" I know what I'm doing", root.getAstInfo().getSuppressionComments().get(3));
|
||||
assertEquals(1, root.getAstInfo().getSuppressionComments().size());
|
||||
|
Reference in New Issue
Block a user