From c1c57e6ba865fd5b6ea8fa0bc4b34a67dcb90fb8 Mon Sep 17 00:00:00 2001 From: Ryan Bethel Date: Tue, 18 Jun 2024 14:57:12 -0700 Subject: [PATCH] failing test for content in same slot --- test/enhance.test.mjs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/test/enhance.test.mjs b/test/enhance.test.mjs index 941cc09..911f360 100644 --- a/test/enhance.test.mjs +++ b/test/enhance.test.mjs @@ -1102,3 +1102,28 @@ test('multiple slots with unnamed slot first', t => { ) t.end() }) + +test('multiple items in the same slot', t => { + const html = enhance({ + bodyContent: true, + elements: { + 'multiple-slots': MultipleSlots, + } + }) + const actual = html` + unnamed slot
slot One
more One
even more One
+ ` + const expected = ` + + unnamed slot
slot One
+
more One
+
even more One
+
+` + t.equal( + strip(actual), + strip(expected), + 'multiple items in the same slot' + ) + t.end() +})