@@ -260,18 +260,18 @@ describe('extractMediaFilename', () => {
260260
261261describe ( 'buildMediaUrl' , ( ) => {
262262 test ( 'constructs correct URL' , ( ) => {
263- const result = buildMediaUrl ( 'http://localhost:8080 ' , 'abc123' , 'image.png' ) ;
264- expect ( result ) . toBe ( 'http://localhost:8080 /api/media/abc123/image.png' ) ;
263+ const result = buildMediaUrl ( 'http://localhost:38123 ' , 'abc123' , 'image.png' ) ;
264+ expect ( result ) . toBe ( 'http://localhost:38123 /api/media/abc123/image.png' ) ;
265265 } ) ;
266266
267267 test ( 'encodes filename' , ( ) => {
268- const result = buildMediaUrl ( 'http://localhost:8080 ' , 'abc123' , 'my image.png' ) ;
269- expect ( result ) . toBe ( 'http://localhost:8080 /api/media/abc123/my%20image.png' ) ;
268+ const result = buildMediaUrl ( 'http://localhost:38123 ' , 'abc123' , 'my image.png' ) ;
269+ expect ( result ) . toBe ( 'http://localhost:38123 /api/media/abc123/my%20image.png' ) ;
270270 } ) ;
271271
272272 test ( 'handles special characters' , ( ) => {
273- const result = buildMediaUrl ( 'http://localhost:8080 ' , 'abc123' , 'image (1).png' ) ;
274- expect ( result ) . toBe ( 'http://localhost:8080 /api/media/abc123/image%20(1).png' ) ;
273+ const result = buildMediaUrl ( 'http://localhost:38123 ' , 'abc123' , 'image (1).png' ) ;
274+ expect ( result ) . toBe ( 'http://localhost:38123 /api/media/abc123/image%20(1).png' ) ;
275275 } ) ;
276276} ) ;
277277
@@ -283,17 +283,17 @@ describe('extractBlobUrl', () => {
283283 } ) ;
284284
285285 test ( 'extracts blob URL from string' , ( ) => {
286- const blobUrl = 'blob:http://localhost:8080 /550e8400-e29b-41d4-a716-446655440000' ;
286+ const blobUrl = 'blob:http://localhost:38123 /550e8400-e29b-41d4-a716-446655440000' ;
287287 expect ( extractBlobUrl ( blobUrl ) ) . toBe ( blobUrl ) ;
288288 } ) ;
289289
290290 test ( 'extracts blob URL from wrapped path' , ( ) => {
291- const wrapped = 'file:///path/to/blob:http://localhost:8080 /550e8400-e29b-41d4-a716-446655440000/media/image.png' ;
292- expect ( extractBlobUrl ( wrapped ) ) . toBe ( 'blob:http://localhost:8080 /550e8400-e29b-41d4-a716-446655440000' ) ;
291+ const wrapped = 'file:///path/to/blob:http://localhost:38123 /550e8400-e29b-41d4-a716-446655440000/media/image.png' ;
292+ expect ( extractBlobUrl ( wrapped ) ) . toBe ( 'blob:http://localhost:38123 /550e8400-e29b-41d4-a716-446655440000' ) ;
293293 } ) ;
294294
295295 test ( 'returns null for non-blob paths' , ( ) => {
296- expect ( extractBlobUrl ( 'http://localhost:8080 /image.png' ) ) . toBe ( null ) ;
296+ expect ( extractBlobUrl ( 'http://localhost:38123 /image.png' ) ) . toBe ( null ) ;
297297 expect ( extractBlobUrl ( 'file:///path/to/image.png' ) ) . toBe ( null ) ;
298298 expect ( extractBlobUrl ( '/media/image.png' ) ) . toBe ( null ) ;
299299 } ) ;
0 commit comments