All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scommons.react.test.package.scala Maven / Gradle / Ivy

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