Skip to content

Commit 6bd1a37

Browse files
authored
chore: remove duplicate test in semver class (#575)
Same as test in lines 64 to 81
1 parent 7fdf1ef commit 6bd1a37

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Diff for: test/classes/semver.js

-19
Original file line numberDiff line numberDiff line change
@@ -123,25 +123,6 @@ test('compare main vs pre', (t) => {
123123
t.end()
124124
})
125125

126-
test('invalid version numbers', (t) => {
127-
['1.2.3.4', 'NOT VALID', 1.2, null, 'Infinity.NaN.Infinity'].forEach((v) => {
128-
t.throws(
129-
() => {
130-
new SemVer(v) // eslint-disable-line no-new
131-
},
132-
{
133-
name: 'TypeError',
134-
message:
135-
typeof v === 'string'
136-
? `Invalid Version: ${v}`
137-
: `Invalid version. Must be a string. Got type "${typeof v}".`,
138-
}
139-
)
140-
})
141-
142-
t.end()
143-
})
144-
145126
test('compareBuild', (t) => {
146127
const noBuild = new SemVer('1.0.0')
147128
const build0 = new SemVer('1.0.0+0')

0 commit comments

Comments
 (0)