scommons.react.test.BaseTestSpec.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scommons-react-test_sjs0.6_2.13 Show documentation
Show all versions of scommons-react-test_sjs0.6_2.13 Show documentation
Core Scala.js, React.js testing utilities
The newest version!
package scommons.react.test
import io.github.shogowada.scalajs.reactjs.VirtualDOM
import io.github.shogowada.scalajs.reactjs.elements.ReactElement
import io.github.shogowada.statictags.Element
import org.scalatest.Inside
import org.scalatest.matchers.should.Matchers
import scala.language.implicitConversions
trait BaseTestSpec extends Matchers
with Inside {
lazy val < : VirtualDOM.VirtualDOMElements = VirtualDOM.<
lazy val ^ : VirtualDOM.VirtualDOMAttributes = VirtualDOM.^
implicit def elementsToVirtualDOMs(element: Element): ReactElement =
VirtualDOM.elementsToVirtualDOMs(element)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy