Skip to content

Commit 40069fc

Browse files
authored
108 plugin doesnt properly support tests with trailing spaces (#109)
* Match tests with trailing spaces * Bump plugin version
1 parent 35a0336 commit 40069fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
33
pluginGroup=no.eirikb.avatest
44
pluginName=AvaJavaScriptTestRunnerRunConfigurationGenerator
5-
pluginVersion=1.11.0
5+
pluginVersion=1.12.0
66
pluginSinceBuild=203
77
pluginUntilBuild=231.*
88
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl

src/main/kotlin/no/eirikb/avatest/utils/getTestNameByClearUnnecessaryString.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fun getTestNameByClearUnnecessaryString(expression: JSLiteralExpression): String
1212
val testName = expression.stringValue
1313

1414
if (testName != null) {
15-
return testName
15+
return testName.trim().replace(" +".toRegex(), " ")
1616
}
1717

1818
val paramSourceCode = expression.text

0 commit comments

Comments
 (0)