Do not check the content of JS file in Gradle test

This commit is contained in:
Alexey Tsvetkov
2016-10-14 16:00:02 +03:00
parent 09d6e2e0c0
commit a0fa69c000
@@ -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") {