Fix js tests

This commit is contained in:
Clément Fournier
2020-06-13 19:02:35 +02:00
parent 30f3d11795
commit 4e21c1a947

View File

@ -147,14 +147,14 @@ public class EcmascriptTokenizerTest {
+ "}")); + "}"));
final Tokens tokens = new Tokens(); final Tokens tokens = new Tokens();
t.tokenize(sourceCode, tokens); t.tokenize(sourceCode, tokens);
final String templateString = "`<g>" + PMD.EOL final String templateString = "`<g>\n"
+ " <path class=\"location\"/>" + PMD.EOL + " <path class=\"location\"/>" + "\n"
+ " <text x=\"0\" y=\"0\" text-anchor=\"middle\" class=\"location-text\"></text>" + PMD.EOL + " <text x=\"0\" y=\"0\" text-anchor=\"middle\" class=\"location-text\"></text>" + "\n"
+ PMD.EOL + "\n"
+ " <path class=\"location\"/>" + PMD.EOL + " <path class=\"location\"/>" + "\n"
+ " <circle class=\"location-circle\"/>" + PMD.EOL + " <circle class=\"location-circle\"/>" + "\n"
+ " ${drawIndicators.Check.markup}" + PMD.EOL + " ${drawIndicators.Check.markup}" + "\n"
+ PMD.EOL + "\n"
+ " </g>`"; + " </g>`";
assertEquals(templateString, tokens.getTokens().get(24).toString()); assertEquals(templateString, tokens.getTokens().get(24).toString());
} }