Skip to content

Commit 5796d2e

Browse files
committed
Tweak EmissionTest conditions to showResult
1 parent 3d057f8 commit 5796d2e

File tree

1 file changed

+2
-1
lines changed
  • library/testEmissions/jvm/src/test/scala/japgolly/scalajs/react/test/emissions

1 file changed

+2
-1
lines changed

library/testEmissions/jvm/src/test/scala/japgolly/scalajs/react/test/emissions/EmissionTest.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ object EmissionTest extends TestSuite {
7171
}
7272

7373
} finally {
74-
if (showResult || !golden)
74+
val didNothing = !golden && expectedFrags.isEmpty
75+
if (showResult || didNothing)
7576
Util.debugShowContent(s"$name.scala JS", actual, "\u001b[107;30m")
7677
}
7778

0 commit comments

Comments
 (0)