Skip to content

Commit 44cf20d

Browse files
committedSep 23, 2020
Make use of @js.native def feature for newer Scala.js version
1 parent 8822843 commit 44cf20d

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
package org.scalajs.jsenv.selenium
22

3+
import scala.scalajs.js
4+
import scala.scalajs.js.annotation.JSImport
5+
36
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
512
}

‎seleniumJSHttpEnvTest/src/main/scala/org/scalajs/jsenv/selenium/CamelcaseEsModule.scala

-10
This file was deleted.

0 commit comments

Comments
 (0)