Skip to content

Commit 24b57b5

Browse files
committed
Explicitly enable scripts in ScriptTest
1 parent 983cc64 commit 24b57b5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

server/src/test/kotlin/org/javacs/kt/ScriptTest.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ import org.hamcrest.Matchers.hasItem
44
import org.junit.Assert.assertThat
55
import org.junit.Test
66

7-
class ScriptTest : LanguageServerTestFixture("script") {
7+
class ScriptTest : LanguageServerTestFixture("script", Configuration().apply {
8+
scripts.enabled = true
9+
}) {
810
@Test fun `open script`() {
911
open("ExampleScript.kts")
1012
}
1113
}
1214

13-
class EditFunctionTest : SingleFileTestFixture("script", "FunctionScript.kts") {
15+
class EditFunctionTest : SingleFileTestFixture("script", "FunctionScript.kts", Configuration().apply {
16+
scripts.enabled = true
17+
}) {
1418
@Test fun `edit a function in a script`() {
1519
replace("FunctionScript.kts", 3, 18, "2", "f")
1620

0 commit comments

Comments
 (0)