Provide default output JS file in Kotlin Gradle plugin
This commit is contained in:
+4
-4
@@ -66,12 +66,12 @@ class Kotlin2JsGradlePluginIT : BaseGradleIT() {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testNoOutputFileFails() {
|
||||
fun testDefaultOutputFile() {
|
||||
val project = Project("kotlin2JsNoOutputFileProject", "2.10")
|
||||
|
||||
project.build("build") {
|
||||
assertFailed()
|
||||
assertReportExists()
|
||||
assertContains("compileKotlin2Js.kotlinOptions.outputFile should be specified.")
|
||||
assertSuccessful()
|
||||
assertFileExists("build/classes/main/kotlin2JsNoOutputFileProject_main.js")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user