From 4c922fbf362b90b27c78b4494ec6d4f18694d2d8 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 31 Mar 2026 19:15:53 -0300 Subject: test: drop isCommentary validator test --- test/unit/data/validators.js | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'test/unit/data/validators.js') 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(`Toby Fox:\ndogsong.mp3`)); - t.ok(isCommentary(`Toby Fox: (music)\ndogsong.mp3`)); - t.throws(() => isCommentary(`dogsong.mp3\nToby Fox:\ndogsong.mp3`)); - t.throws(() => isCommentary(`Toby Fox: dogsong.mp3`)); - t.throws(() => isCommentary(`Toby Fox: (music) dogsong.mp3`)); - t.throws(() => isCommentary(`I Have Nothing To Say:`)); - t.throws(() => isCommentary(123)); - t.throws(() => isCommentary(``)); - t.throws(() => isCommentary(`Technically, ah, er:\nCorrect`)); -}); - t.test('isContentString', t => { t.plan(12); -- cgit 1.3.0-6-gf8a5