@@ -412,14 +412,14 @@ describe('getUIExtensionPayload', () => {
412412 assets : {
413413 assets : {
414414 name : 'assets' ,
415- url : 'http://tunnel-url.com/extensions/devUUID/assets/CUSTOM_EXTENSION_POINT/assets/ ' ,
415+ url : 'http://tunnel-url.com/extensions/devUUID/assets/CUSTOM_EXTENSION_POINT/' ,
416416 lastUpdated : expect . any ( Number ) ,
417417 } ,
418418 } ,
419419 } ,
420420 ] )
421- expect ( resolver . get ( 'CUSTOM_EXTENSION_POINT/assets/ foo.json' ) ) . toBe ( 'foo.json' )
422- expect ( resolver . get ( 'CUSTOM_EXTENSION_POINT/assets/ subdir/bar.png' ) ) . toBe ( 'subdir/bar.png' )
421+ expect ( resolver . get ( 'CUSTOM_EXTENSION_POINT/foo.json' ) ) . toBe ( 'foo.json' )
422+ expect ( resolver . get ( 'CUSTOM_EXTENSION_POINT/subdir/bar.png' ) ) . toBe ( 'subdir/bar.png' )
423423 } )
424424 } )
425425
@@ -465,16 +465,16 @@ describe('getUIExtensionPayload', () => {
465465 expect ( got . extensionPoints ) . toMatchObject ( [
466466 {
467467 target : 'TARGET_A' ,
468- assets : { assets : { url : 'http://tunnel-url.com/extensions/devUUID/assets/TARGET_A/assets/ ' } } ,
468+ assets : { assets : { url : 'http://tunnel-url.com/extensions/devUUID/assets/TARGET_A/' } } ,
469469 } ,
470470 {
471471 target : 'TARGET_B' ,
472- assets : { assets : { url : 'http://tunnel-url.com/extensions/devUUID/assets/TARGET_B/assets/ ' } } ,
472+ assets : { assets : { url : 'http://tunnel-url.com/extensions/devUUID/assets/TARGET_B/' } } ,
473473 } ,
474474 ] )
475475 // Both targets' resolver entries point at the same output-relative file.
476- expect ( resolver . get ( 'TARGET_A/assets/ foo.json' ) ) . toBe ( 'foo.json' )
477- expect ( resolver . get ( 'TARGET_B/assets/ foo.json' ) ) . toBe ( 'foo.json' )
476+ expect ( resolver . get ( 'TARGET_A/foo.json' ) ) . toBe ( 'foo.json' )
477+ expect ( resolver . get ( 'TARGET_B/foo.json' ) ) . toBe ( 'foo.json' )
478478 } )
479479 } )
480480
0 commit comments