You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
506 B
23 lines
506 B
package outwatchapp
|
|
|
|
import org.scalajs.dom._
|
|
import org.scalatest.BeforeAndAfterEach
|
|
import org.scalatest.flatspec.AnyFlatSpec
|
|
import org.scalatest.matchers.should.Matchers
|
|
|
|
abstract class JSDomSpec
|
|
extends AnyFlatSpec
|
|
with Matchers
|
|
with BeforeAndAfterEach {
|
|
|
|
override def beforeEach(): Unit = {
|
|
|
|
document.body.innerHTML = ""
|
|
|
|
// prepare body with <div id="app"></div>
|
|
val root = document.createElement("div")
|
|
root.id = "app"
|
|
document.body.appendChild(root)
|
|
()
|
|
}
|
|
}
|