File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/kotlin/no/eirikb/avatest/actions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ class AvaJavaScriptTestRunnerRunConfigurationGenerator : AnAction() {
3535 }
3636
3737 private fun getTestName (element : PsiElement ? ): String? {
38- if (element == null || element.parent== null ) {
38+ if (element == null || element.parent == null ) {
3939 return null
4040 }
4141
42- if ( element !is JSCallExpression ) {
42+ if ( element !is JSCallExpression ) {
4343 return getTestName(element.parent)
4444 }
4545
@@ -78,7 +78,7 @@ class AvaJavaScriptTestRunnerRunConfigurationGenerator : AnAction() {
7878 val filePath = currentFile.path
7979 val fileName = Paths .get(filePath).fileName.toString()
8080 val basePath = project.basePath
81- val relPath = if (basePath == null ) fileName else currentFile.path.substring(basePath.length + 1 )
81+ val relPath = if (basePath == null ) fileName else currentFile.path.substring(basePath.length + 1 )
8282 val node: NodeJsRunConfiguration ? =
8383 NodeJsRunConfiguration .getDefaultRunConfiguration(project)?.clone() as NodeJsRunConfiguration ?
8484 if (node == null ) {
You can’t perform that action at this time.
0 commit comments