Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ import com.intellij.psi.PsiElement
import com.jetbrains.nodejs.run.NodeJsRunConfiguration
import java.nio.file.Paths

fun JSCallExpression.isTest() = this.methodExpression?.text.equals("test")
fun JSCallExpression.isTest(): Boolean {
var text = this.methodExpression?.text

if (text != null) {
return text == "test" || text.startsWith("test.")
}

return false;
}

class AvaJavaScriptTestRunnerRunConfigurationGenerator : AnAction() {
companion object {
Expand Down