From d6bc3e2094684febdad346cb23e4d540b769e4eb Mon Sep 17 00:00:00 2001 From: yassin-kammoun-sonarsource Date: Wed, 6 Apr 2022 12:02:29 +0200 Subject: [PATCH] Drop outdated plugin unit test The bug mentioned in the test was fixed with https://github.com/shellscape/postcss-less/pull/159 --- .../css-issues-project/src/file-with-parsing-error.less | 7 ------- .../com/sonar/javascript/it/plugin/CssIssuesTest.java | 8 -------- 2 files changed, 15 deletions(-) delete mode 100644 its/plugin/projects/css-issues-project/src/file-with-parsing-error.less diff --git a/its/plugin/projects/css-issues-project/src/file-with-parsing-error.less b/its/plugin/projects/css-issues-project/src/file-with-parsing-error.less deleted file mode 100644 index 6367f28c21..0000000000 --- a/its/plugin/projects/css-issues-project/src/file-with-parsing-error.less +++ /dev/null @@ -1,7 +0,0 @@ -.foo(@i : 1 ) when (@i <= 10){ - @num : @i *10 ; - .height-@{num}{ - height : @num * 1%; - } -} - diff --git a/its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/CssIssuesTest.java b/its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/CssIssuesTest.java index 51995dbd97..7cc6476fea 100644 --- a/its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/CssIssuesTest.java +++ b/its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/CssIssuesTest.java @@ -71,14 +71,6 @@ void parsing_error_not_on_excluded_files() { .matches("(?s).*ERROR: Failed to parse file:\\S*file-with-parsing-error\\.css, line 1, Unclosed block.*"); } - // see https://github.com/SonarSource/sonar-css/issues/235 - @Test - void parsing_error_on_less_selector_without_leading_space() { - // there should not be parse error: this comes from a bug reported to transitive dependency postcss-less (https://github.com/shellscape/postcss-less/issues/146) - assertThat(buildResult.getLogs()) - .matches("(?s).*ERROR: Failed to parse file:\\S*file-with-parsing-error\\.less, line 4, Unknown word.*"); - } - @Test void issue_list() { SearchRequest request = new SearchRequest();