Skip to content

Commit

Permalink
chore: remove duplicate test in semver class (#575)
Browse files Browse the repository at this point in the history
Same as test in lines 64 to 81
  • Loading branch information
mbtools authored Jun 26, 2023
1 parent 7fdf1ef commit 6bd1a37
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/classes/semver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 6bd1a37

Please sign in to comment.