diff options
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 |
commit | f684939fea12e2d60955ac3eeaac3d1012f86929 (patch) | |
tree | ecfa65ffdbec589da0fe3c2fac776af5a8c6e583 | |
parent | 0bb3fe00bd9cd5fa90466975795fe45ed6bf2b96 (diff) |
test: update behavior of empty string in string slot
-rw-r--r-- | test/unit/util/html.js | 4 |
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 => { |