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

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

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