Do not check the content of JS file in Gradle test
This commit is contained in:
-8
@@ -22,14 +22,6 @@ class Kotlin2JsGradlePluginIT : BaseGradleIT() {
|
||||
"libraryProject/build/kotlin2js/main/test-library.js",
|
||||
"mainProject/web/js/app.js.map"
|
||||
).forEach { assertFileExists(it) }
|
||||
|
||||
|
||||
// TODO Should be updated to `new _.example.library.Counter` once namespaced imports from libraryFiles are implemented
|
||||
// TODO It would be better to test these by behavior instead of implementation, for example by loading the files
|
||||
// into Rhino and running assertions on that. See https://github.com/abesto/kotlin/commit/120ec1bda3d95630189d4d33d0b2afb4253b5186
|
||||
// for the (original) discussion on this.
|
||||
assertFileContains("libraryProject/build/kotlin2js/main/test-library.js", "Counter: Kotlin.createClass")
|
||||
assertFileContains("mainProject/web/js/app.js", "var counter = new \$module\$test_library.example.library.Counter(counterText);")
|
||||
}
|
||||
|
||||
project.build("build") {
|
||||
|
||||
Reference in New Issue
Block a user