scommons.react.test.package.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
import io.github.shogowada.scalajs.reactjs.VirtualDOM._
import io.github.shogowada.statictags._
package object test {
@deprecated("Will be removed soon, use TestInstance instead", "0.5.1")
type ShallowInstance = test.raw.ShallowInstance
@deprecated("Will be removed soon, use TestRendererUtils instead", "0.5.1")
type ShallowRendererUtils = test.util.ShallowRendererUtils
lazy val TestRenderer = test.raw.TestRenderer
type TestInstance = test.raw.TestInstance
type TestRendererUtils = test.util.TestRendererUtils
object TestVirtualDOMAttributes {
import VirtualDOMAttributes.Type._
case class AssertPropAttributeSpec(name: String) extends AttributeSpec {
def apply(f: Any => Any): Attribute[Any => Any] = Attribute(name, f, AS_IS)
}
}
implicit class TestVirtualDOMAttributes(attributes: VirtualDOMAttributes) {
import TestVirtualDOMAttributes._
lazy val assertWrapped = AssertPropAttributeSpec("assertWrapped")
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy