« get me outta code hell

test: update behavior of empty string in string slot - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/unit
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-10-15 15:36:06 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-10-15 15:36:06 -0300
commitf684939fea12e2d60955ac3eeaac3d1012f86929 (patch)
treeecfa65ffdbec589da0fe3c2fac776af5a8c6e583 /test/unit
parent0bb3fe00bd9cd5fa90466975795fe45ed6bf2b96 (diff)
test: update behavior of empty string in string slot
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/util/html.js4
1 files 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(), `<span>123 0 false (length: 0)</span>`);
+  t.equal(template3.toString(), `<span>123 0 false (is null: true)</span>`);
 });
 
 t.test(`Template - description errors`, t => {