Skip to content

Commit 188d225

Browse files
committed
fix test
1 parent cf20cdf commit 188d225

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/tests/src/test/scala/japgolly/scalajs/react/core/ScalaComponentTest.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ object ScalaComponentPTest extends TestSuite {
169169

170170
assertEq("willUnmountCount", willUnmountCount, 0)
171171
mounted = Comp(null).renderIntoDOM(mountNode)
172-
assertOuterHTMLMatches(el(), "<div>Error: Cannot read propert(y|ies) of null.*</div>")
172+
// Error message varies between development and production modes
173+
assertOuterHTMLMatches(el(), "<div>(?:Error: Cannot read propert(y|ies) of null.*|Error: java\\.lang\\.NullPointerException)</div>")
173174
assertEq("willUnmountCount", willUnmountCount, 1)
174175
mounted.withEffectsPure.getDOMNode
175176
}

0 commit comments

Comments
 (0)