diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-03-31 19:15:53 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-03-31 19:15:53 -0300 |
| commit | 4c922fbf362b90b27c78b4494ec6d4f18694d2d8 (patch) | |
| tree | e68263da89fe4de0c292693e694004d529aad684 | |
| parent | 30b2d8f98749f60ed6abc75d40d5bbbe36132a6b (diff) | |
test: drop isCommentary validator test
| -rw-r--r-- | test/unit/data/validators.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/unit/data/validators.js b/test/unit/data/validators.js index 02f94866..6e37f170 100644 --- a/test/unit/data/validators.js +++ b/test/unit/data/validators.js @@ -17,7 +17,6 @@ import { // Wiki data isColor, - isCommentary, isContentString, isContribution, isContributionList, @@ -152,21 +151,6 @@ t.test('isColor', t => { t.throws(() => isColor('hsl(150deg 30% 60%)'), TypeError); }); -t.test('isCommentary', t => { - t.plan(9); - - // TODO: Test specific error messages. - t.ok(isCommentary(`<i>Toby Fox:</i>\ndogsong.mp3`)); - t.ok(isCommentary(`<i>Toby Fox:</i> (music)\ndogsong.mp3`)); - t.throws(() => isCommentary(`dogsong.mp3\n<i>Toby Fox:</i>\ndogsong.mp3`)); - t.throws(() => isCommentary(`<i>Toby Fox:</i> dogsong.mp3`)); - t.throws(() => isCommentary(`<i>Toby Fox:</i> (music) dogsong.mp3`)); - t.throws(() => isCommentary(`<i>I Have Nothing To Say:</i>`)); - t.throws(() => isCommentary(123)); - t.throws(() => isCommentary(``)); - t.throws(() => isCommentary(`Technically, ah, er:</i>\nCorrect`)); -}); - t.test('isContentString', t => { t.plan(12); |