diff options
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 |
commit | 01a1e04649907aaf73564b3442f683cab73c3a78 (patch) | |
tree | bf6e23aab390d4682f0af25acf2a3eaa6850ffa4 /test/unit/data | |
parent | f46e4c2eba7cfc194907e767893e8c89c072c338 (diff) |
validators, test: define various validators with isContentString
Diffstat (limited to 'test/unit/data')
-rw-r--r-- | test/unit/data/things/validators.js | 2 |
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)); }); |