Skip to content

Commit

Permalink
Misc: Replace ExpectedNode.comment with sentinel in new test
Browse files Browse the repository at this point in the history
  • Loading branch information
raquo committed Feb 26, 2023
1 parent 1507de9 commit 0bdd024
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions src/test/scala/com/raquo/laminar/RenderableSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,13 @@ class RenderableSpec extends UnitSpec {

expectNode(
div of(
ExpectedNode.comment,
sentinel,
input of (idAttr is "Solo.child"),
ExpectedNode.comment,
sentinel,
input of (idAttr is "Option.child.maybe"),
ExpectedNode.comment,
sentinel,
input of (idAttr is "List.children"),
ExpectedNode.comment,
sentinel,
input of (idAttr is "Vector.children")
)
)
Expand All @@ -184,15 +184,15 @@ class RenderableSpec extends UnitSpec {

expectNode(
div of(
ExpectedNode.comment,
sentinel,
input of (idAttr is "Solo.onMountInsert"),
ExpectedNode.comment,
sentinel,
input of (idAttr is "Solo.child.onMountInsert"),
ExpectedNode.comment,
sentinel,
input of (idAttr is "Option.child.maybe.onMountInsert"),
ExpectedNode.comment,
sentinel,
input of (idAttr is "List.children.onMountInsert"),
ExpectedNode.comment,
sentinel,
input of (idAttr is "Vector.children.onMountInsert")
)
)
Expand Down Expand Up @@ -291,13 +291,13 @@ class RenderableSpec extends UnitSpec {

expectNode(
div of (
ExpectedNode.comment,
sentinel,
input of (idAttr is "Solo.child"),
ExpectedNode.comment,
sentinel,
input of (idAttr is "Option.child.maybe"),
ExpectedNode.comment,
sentinel,
input of (idAttr is "List.children"),
ExpectedNode.comment,
sentinel,
input of (idAttr is "Vector.children")
)
)
Expand All @@ -321,15 +321,15 @@ class RenderableSpec extends UnitSpec {

expectNode(
div of (
ExpectedNode.comment,
sentinel,
input of (idAttr is "Solo.onMountInsert"),
ExpectedNode.comment,
sentinel,
input of (idAttr is "Solo.child.onMountInsert"),
ExpectedNode.comment,
sentinel,
input of (idAttr is "Option.child.maybe.onMountInsert"),
ExpectedNode.comment,
sentinel,
input of (idAttr is "List.children.onMountInsert"),
ExpectedNode.comment,
sentinel,
input of (idAttr is "Vector.children.onMountInsert")
)
)
Expand Down Expand Up @@ -382,21 +382,21 @@ class RenderableSpec extends UnitSpec {

expectNode(
div of (
ExpectedNode.comment,
sentinel,
"empty-0",
ExpectedNode.comment,
sentinel,
"1",
ExpectedNode.comment,
sentinel,
"2",
ExpectedNode.comment,
sentinel,
input,
ExpectedNode.comment,
sentinel,
"4",
ExpectedNode.comment,
sentinel,
"5",
ExpectedNode.comment,
sentinel,
"6",
ExpectedNode.comment,
sentinel,
"7"
)
)
Expand All @@ -405,21 +405,21 @@ class RenderableSpec extends UnitSpec {

expectNode(
div of(
ExpectedNode.comment,
sentinel,
div of ("div-0"),
ExpectedNode.comment,
sentinel,
div of ("div-1"),
ExpectedNode.comment,
sentinel,
"text-2",
ExpectedNode.comment,
sentinel,
"text-3",
ExpectedNode.comment,
sentinel,
"4",
ExpectedNode.comment,
sentinel,
"5",
ExpectedNode.comment,
sentinel,
"text-6",
ExpectedNode.comment,
sentinel,
"text-7"
)
)
Expand Down Expand Up @@ -455,15 +455,15 @@ class RenderableSpec extends UnitSpec {

expectNode(
div of(
ExpectedNode.comment,
ExpectedNode.comment,
ExpectedNode.comment,
ExpectedNode.comment,
ExpectedNode.comment,
sentinel,
sentinel,
sentinel,
sentinel,
sentinel,
"2",
ExpectedNode.comment,
sentinel,
input,
ExpectedNode.comment,
sentinel,
"4"
)
)
Expand All @@ -472,15 +472,15 @@ class RenderableSpec extends UnitSpec {

expectNode(
div of(
ExpectedNode.comment,
sentinel,
div of ("div-0"),
ExpectedNode.comment,
sentinel,
"1",
ExpectedNode.comment,
sentinel,
"text-2",
ExpectedNode.comment,
sentinel,
"text-3",
ExpectedNode.comment,
sentinel,
"4"
)
)
Expand Down

0 comments on commit 0bdd024

Please sign in to comment.