File tree Expand file tree Collapse file tree 3 files changed +11
-16
lines changed
seleniumJSHttpEnvTest/src/main/scala/org/scalajs/jsenv/selenium Expand file tree Collapse file tree 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(
7171 SeleniumJSEnv .Config ()
7272 .withMaterializeInServer(" tmp" , " http://localhost:8080/tmp/" )
7373 )
74- }
74+ },
75+ scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind .ESModule ) }
7576)
7677
7778// We'll need the name scalajs-env-selenium for the `seleniumJSEnv` project
@@ -137,7 +138,4 @@ lazy val seleniumJSEnvTest: Project = project.
137138lazy val seleniumJSHttpEnvTest : Project = project.
138139 enablePlugins(ScalaJSPlugin ).
139140 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 11package org .scalajs .jsenv .selenium
22
3+ import scala .scalajs .js
4+ import scala .scalajs .js .annotation .JSImport
5+
36object 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
512}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments