From f684939fea12e2d60955ac3eeaac3d1012f86929 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 15 Oct 2025 15:36:06 -0300 Subject: test: update behavior of empty string in string slot --- test/unit/util/html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/util/html.js b/test/unit/util/html.js index 1652aee2..126e36ff 100644 --- a/test/unit/util/html.js +++ b/test/unit/util/html.js @@ -545,7 +545,7 @@ t.test(`html.template`, t => { slots.slot1, slots.slot2, slots.slot3, - `(length: ${slots.slot4.length})`, + `(is null: ${slots.slot4 === null})`, ].join(' ')); }, }); @@ -557,7 +557,7 @@ t.test(`html.template`, t => { slot4: '', }); - t.equal(template3.toString(), `123 0 false (length: 0)`); + t.equal(template3.toString(), `123 0 false (is null: true)`); }); t.test(`Template - description errors`, t => { -- cgit 1.3.0-6-gf8a5