Skip to content

Commit 0c7943c

Browse files
committed
Add toString to ReactTestUtilsConfigTypes.AroundReact instances
1 parent db9dd87 commit 0c7943c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/testUtilMacros/src/main/scala/japgolly/scalajs/react/test/internal/ReactTestUtilsConfigTypes.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ object ReactTestUtilsConfigTypes {
2626
object AroundReact {
2727

2828
object id extends AroundReact {
29+
override def toString = "AroundReact.id"
2930
override def start(): () => Unit = () => ()
3031
override def sync[A](body: => A): A = body
3132
override def apply[F[_]: Effect, A](body: F[A]): F[A] = body
3233
}
3334

3435
object fatalReactWarnings extends AroundReact {
36+
override def toString = "AroundReact.fatalReactWarnings"
3537
val consoleHijack = ConsoleHijack.fatalReactWarnings
3638
override def start(): () => Unit =
3739
consoleHijack.install()

0 commit comments

Comments
 (0)