File tree 3 files changed +11
-16
lines changed
seleniumJSHttpEnvTest/src/main/scala/org/scalajs/jsenv/selenium
3 files changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ val httpTestSettings: Seq[Setting[_]] = testSettings ++ Seq(
71
71
SeleniumJSEnv .Config ()
72
72
.withMaterializeInServer(" tmp" , " http://localhost:8080/tmp/" )
73
73
)
74
- }
74
+ },
75
+ scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind .ESModule ) }
75
76
)
76
77
77
78
// We'll need the name scalajs-env-selenium for the `seleniumJSEnv` project
@@ -137,7 +138,4 @@ lazy val seleniumJSEnvTest: Project = project.
137
138
lazy val seleniumJSHttpEnvTest : Project = project.
138
139
enablePlugins(ScalaJSPlugin ).
139
140
enablePlugins(ScalaJSJUnitPlugin ).
140
- settings(httpTestSettings).
141
- settings(
142
- scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind .ESModule ) }
143
- )
141
+ settings(httpTestSettings)
Original file line number Diff line number Diff line change 1
1
package org .scalajs .jsenv .selenium
2
2
3
+ import scala .scalajs .js
4
+ import scala .scalajs .js .annotation .JSImport
5
+
3
6
object CamelCase {
4
- def hello (input : String ): String = s " Hello ${CamelcaseEsModule (input)}! "
7
+ def hello (input : String ): String = s " Hello ${camelCase(input)}! "
8
+
9
+ @ JSImport (" https://cdn.skypack.dev/camelcase@^6.0.0" , JSImport .Default )
10
+ @ js.native
11
+ def camelCase (input : String ): String = js.native
5
12
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments