From 627e40a68423c394127059a7044ff6d4d152c71b Mon Sep 17 00:00:00 2001 From: Marc Bernard <59966492+mbtools@users.noreply.github.com> Date: Mon, 26 Jun 2023 10:38:53 +0200 Subject: [PATCH] chore: remove duplicate test in semver class Same as test in lines 64 to 81 --- test/classes/semver.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/test/classes/semver.js b/test/classes/semver.js index 1e4d48f8..85a0ec31 100644 --- a/test/classes/semver.js +++ b/test/classes/semver.js @@ -123,25 +123,6 @@ test('compare main vs pre', (t) => { t.end() }) -test('invalid version numbers', (t) => { - ['1.2.3.4', 'NOT VALID', 1.2, null, 'Infinity.NaN.Infinity'].forEach((v) => { - t.throws( - () => { - new SemVer(v) // eslint-disable-line no-new - }, - { - name: 'TypeError', - message: - typeof v === 'string' - ? `Invalid Version: ${v}` - : `Invalid version. Must be a string. Got type "${typeof v}".`, - } - ) - }) - - t.end() -}) - test('compareBuild', (t) => { const noBuild = new SemVer('1.0.0') const build0 = new SemVer('1.0.0+0')