Skip to content

Commit 077288a

Browse files
committed
Remove duplicate constructor validation tests from package-url-builder.test.mts
Removed tests that verify PackageURL constructor validation, which is already comprehensively tested in package-url.test.mts. The builder delegates to the constructor, so these tests provided no additional coverage.
1 parent 4693f88 commit 077288a

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

test/package-url-builder.test.mts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -259,18 +259,4 @@ describe('PackageURLBuilder', () => {
259259
expect(originalPurl.qualifiers).toEqual({ arch: 'x64' })
260260
})
261261
})
262-
263-
describe('validation through build', () => {
264-
it('should validate through PackageURL constructor', () => {
265-
expect(() => {
266-
PackageURLBuilder.create().type('').name('lodash').build()
267-
}).toThrow()
268-
})
269-
270-
it('should validate name is required', () => {
271-
expect(() => {
272-
PackageURLBuilder.create().type('npm').build()
273-
}).toThrow()
274-
})
275-
})
276262
})

0 commit comments

Comments
 (0)