« get me outta code hell

validators, test: define various validators with isContentString - 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>2024-01-05 22:02:27 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-06 12:50:30 -0400
commit01a1e04649907aaf73564b3442f683cab73c3a78 (patch)
treebf6e23aab390d4682f0af25acf2a3eaa6850ffa4 /test/unit
parentf46e4c2eba7cfc194907e767893e8c89c072c338 (diff)
validators, test: define various validators with isContentString
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/data/things/validators.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/data/things/validators.js b/test/unit/data/things/validators.js
index 178f8657..8fed27ff 100644
--- a/test/unit/data/things/validators.js
+++ b/test/unit/data/things/validators.js
@@ -227,7 +227,7 @@ t.test('isName', t => {
   t.plan(4);
   t.ok(isName('Dogz 2.0'));
   t.ok(isName('album:this-track-is-only-named-thusly-to-give-niklink-a-headache'));
-  t.ok(isName(''));
+  t.throws(() => isName(''));
   t.throws(() => isName(612));
 });