Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiaggio committed Jul 11, 2024
1 parent cf20cdf commit 188d225
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ object ScalaComponentPTest extends TestSuite {

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

0 comments on commit 188d225

Please sign in to comment.