@@ -243,16 +243,16 @@ describe('PackageURL JSON/dict export', () => {
243243 it ( 'should validate input and throw appropriate errors' , ( ) => {
244244 // Test non-object inputs
245245 expect ( ( ) => PackageURL . fromObject ( 'not an object' ) ) . toThrow (
246- 'Object argument is required. ' ,
246+ 'Object argument is required' ,
247247 )
248248 expect ( ( ) => PackageURL . fromObject ( null ) ) . toThrow (
249- 'Object argument is required. ' ,
249+ 'Object argument is required' ,
250250 )
251251 expect ( ( ) => PackageURL . fromObject ( undefined ) ) . toThrow (
252- 'Object argument is required. ' ,
252+ 'Object argument is required' ,
253253 )
254254 expect ( ( ) => PackageURL . fromObject ( 123 ) ) . toThrow (
255- 'Object argument is required. ' ,
255+ 'Object argument is required' ,
256256 )
257257
258258 // Test validation errors
@@ -293,26 +293,26 @@ describe('PackageURL JSON/dict export', () => {
293293 it ( 'should validate input and throw appropriate errors' , ( ) => {
294294 // Test non-string inputs
295295 expect ( ( ) => PackageURL . fromJSON ( 123 ) ) . toThrow (
296- 'JSON string argument is required. ' ,
296+ 'JSON string argument is required' ,
297297 )
298298 expect ( ( ) => PackageURL . fromJSON ( null ) ) . toThrow (
299- 'JSON string argument is required. ' ,
299+ 'JSON string argument is required' ,
300300 )
301301 expect ( ( ) => PackageURL . fromJSON ( undefined ) ) . toThrow (
302- 'JSON string argument is required. ' ,
302+ 'JSON string argument is required' ,
303303 )
304304 expect ( ( ) => PackageURL . fromJSON ( { } ) ) . toThrow (
305- 'JSON string argument is required. ' ,
305+ 'JSON string argument is required' ,
306306 )
307307
308308 // Test invalid JSON
309309 expect ( ( ) => PackageURL . fromJSON ( 'invalid json' ) ) . toThrow (
310- 'Invalid JSON string. ' ,
310+ 'Invalid JSON string' ,
311311 )
312312 expect ( ( ) => PackageURL . fromJSON ( '{"type":"npm","name"}' ) ) . toThrow (
313- 'Invalid JSON string. ' ,
313+ 'Invalid JSON string' ,
314314 )
315- expect ( ( ) => PackageURL . fromJSON ( '' ) ) . toThrow ( 'Invalid JSON string. ' )
315+ expect ( ( ) => PackageURL . fromJSON ( '' ) ) . toThrow ( 'Invalid JSON string' )
316316
317317 // Test validation of created PackageURL
318318 expect ( ( ) =>
0 commit comments