diff options
Diffstat (limited to 'test/unit')
| -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); |