You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Check if we need to insert `$$maybeRenderHead` at the start of the template.
@@ -1746,10 +1771,9 @@ import Component from 'test';
1746
1771
"Missing $$renderHead in head"
1747
1772
);
1748
1773
1749
-
let maybe_render_head_count = output.matches("$$maybeRenderHead").count();
1750
-
assert_eq!(
1751
-
maybe_render_head_count,1,
1752
-
"$$maybeRenderHead should only appear once (in import), found {maybe_render_head_count} times. Body should not have $$maybeRenderHead when explicit <head> exists"
1774
+
assert!(
1775
+
!output.contains("$$maybeRenderHead("),
1776
+
"Body should not have $$maybeRenderHead when explicit <head> exists"
1753
1777
);
1754
1778
}
1755
1779
@@ -1767,10 +1791,9 @@ import Component from 'test';
1767
1791
"Missing meta element"
1768
1792
);
1769
1793
1770
-
let maybe_render_head_count = output.matches("$$maybeRenderHead").count();
1771
-
assert_eq!(
1772
-
maybe_render_head_count,1,
1773
-
"$$maybeRenderHead should only appear once (in import), found {maybe_render_head_count} times. Head elements should not trigger $$maybeRenderHead"
1794
+
assert!(
1795
+
!output.contains("$$maybeRenderHead("),
1796
+
"Head elements should not trigger $$maybeRenderHead"
1774
1797
);
1775
1798
}
1776
1799
@@ -1788,10 +1811,9 @@ import Component from 'test';
1788
1811
"Custom element should have tag name as both display name and quoted identifier"
1789
1812
);
1790
1813
1791
-
let maybe_render_head_count = output.matches("$$maybeRenderHead").count();
1792
-
assert_eq!(
1793
-
maybe_render_head_count,1,
1794
-
"$$maybeRenderHead should only appear once (in import), custom elements should not trigger it"
1814
+
assert!(
1815
+
!output.contains("$$maybeRenderHead("),
1816
+
"Custom elements should not trigger $$maybeRenderHead"
0 commit comments