From a5532251fa29bb3b4b1aff115efc8261b6a1a796 Mon Sep 17 00:00:00 2001 From: kj Date: Fri, 31 May 2024 16:10:50 -0700 Subject: [PATCH] Updates slot attribute set. --- index.mjs | 2 +- test/enhance.test.mjs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/index.mjs b/index.mjs index 7aaf7b9..91012f8 100644 --- a/index.mjs +++ b/index.mjs @@ -276,7 +276,7 @@ function fillSlots(node, template) { nodeName: 'span', tagName: 'span', attrs: [ - { name: 'slot', value: ' '} + { name: 'slot', value: ''} ], childNodes: [child] } diff --git a/test/enhance.test.mjs b/test/enhance.test.mjs index 05a1852..e63339c 100644 --- a/test/enhance.test.mjs +++ b/test/enhance.test.mjs @@ -67,7 +67,7 @@ test('default content in unnamed slot', t => { ` const expected = ` - + ` t.equal( @@ -115,7 +115,7 @@ test('should replace default content in unnamed slot', t => { ` const expected = ` - + ` t.equal( @@ -311,7 +311,7 @@ test('add authored children to unnamed slot', t => {

My Content

Custom title

- Just text + Just text
` @@ -885,7 +885,7 @@ test('should support nested custom elements with nested slots', t => {

- My Heading + My Heading

@@ -999,9 +999,9 @@ ${Head()} - first - second - first again + first + second + first again ` @@ -1094,7 +1094,7 @@ test('multiple slots with unnamed slot first', t => { ` const expected = ` - unnamed slot
slot One
+ unnamed slot
slot One
` t.equal(