@@ -495,27 +495,27 @@ createNextDescribe(
495
495
'og:image:alt' : 'A alt txt for og' ,
496
496
'og:image' : isNextDev
497
497
? expect . stringMatching (
498
- / h t t p : \/ \/ l o c a l h o s t : \d + \/ o p e n g r a p h \/ s t a t i c \/ o p e n g r a p h - i m a g e . p n g \? b 7 6 e 8 f 0 2 8 2 c 9 3 c 8 e /
498
+ / h t t p : \/ \/ l o c a l h o s t : \d + \/ o p e n g r a p h \/ s t a t i c \/ o p e n g r a p h - i m a g e /
499
499
)
500
500
: expect . stringMatching (
501
501
new RegExp (
502
502
`https:\\/\\/(${
503
503
isNextDeploy ? '.*?\\.vercel\\.app' : 'example\\.com'
504
- } )\\/opengraph\\/static\\/opengraph-image.png\\?b76e8f0282c93c8e `
504
+ } )\\/opengraph\\/static\\/opengraph-image`
505
505
)
506
506
) ,
507
507
} )
508
508
509
509
await match ( 'meta' , 'name' , 'content' , {
510
510
'twitter:image' : isNextDev
511
511
? expect . stringMatching (
512
- / h t t p : \/ \/ l o c a l h o s t : \d + \/ o p e n g r a p h \/ s t a t i c \/ t w i t t e r - i m a g e . p n g \? b 7 6 e 8 f 0 2 8 2 c 9 3 c 8 e /
512
+ / h t t p : \/ \/ l o c a l h o s t : \d + \/ o p e n g r a p h \/ s t a t i c \/ t w i t t e r - i m a g e /
513
513
)
514
514
: expect . stringMatching (
515
515
new RegExp (
516
516
`https:\\/\\/(${
517
517
isNextDeploy ? '.*?\\.vercel\\.app' : 'example\\.com'
518
- } )\\/opengraph\\/static\\/twitter-image.png\\?b76e8f0282c93c8e `
518
+ } )\\/opengraph\\/static\\/twitter-image`
519
519
)
520
520
) ,
521
521
'twitter:image:alt' : 'A alt txt for twitter' ,
@@ -705,13 +705,11 @@ createNextDescribe(
705
705
const $icon = $ ( 'head > link[rel="icon"][type!="image/x-icon"]' )
706
706
const $appleIcon = $ ( 'head > link[rel="apple-touch-icon"]' )
707
707
708
- expect ( $icon . attr ( 'href' ) ) . toMatch (
709
- / \/ i c o n s \/ s t a t i c \/ n e s t e d \/ i c o n 1 \. p n g \? 3 9 9 d e 3 b 9 4 b 8 8 8 a f c /
710
- )
708
+ expect ( $icon . attr ( 'href' ) ) . toMatch ( / \/ i c o n s \/ s t a t i c \/ n e s t e d \/ i c o n 1 / )
711
709
expect ( $icon . attr ( 'sizes' ) ) . toBe ( '32x32' )
712
710
expect ( $icon . attr ( 'type' ) ) . toBe ( 'image/png' )
713
711
expect ( $appleIcon . attr ( 'href' ) ) . toMatch (
714
- / \/ i c o n s \/ s t a t i c \/ n e s t e d \/ a p p l e - i c o n \. p n g \? b 7 6 e 8 f 0 2 8 2 c 9 3 c 8 e /
712
+ / \/ i c o n s \/ s t a t i c \/ n e s t e d \/ a p p l e - i c o n /
715
713
)
716
714
expect ( $appleIcon . attr ( 'type' ) ) . toBe ( 'image/png' )
717
715
expect ( $appleIcon . attr ( 'sizes' ) ) . toMatch ( '114x114' )
@@ -722,9 +720,7 @@ createNextDescribe(
722
720
723
721
const $icon = $ ( 'head > link[rel="icon"][type!="image/x-icon"]' )
724
722
725
- expect ( $icon . attr ( 'href' ) ) . toMatch (
726
- / \/ i c o n s \/ s t a t i c \/ i c o n \. p n g \? b 7 6 e 8 f 0 2 8 2 c 9 3 c 8 e /
727
- )
723
+ expect ( $icon . attr ( 'href' ) ) . toMatch ( / \/ i c o n s \/ s t a t i c \/ i c o n / )
728
724
expect ( $icon . attr ( 'sizes' ) ) . toBe ( '114x114' )
729
725
730
726
// No apple icon if it's not provided
@@ -735,14 +731,14 @@ createNextDescribe(
735
731
const $dynamicIcon = $dynamic ( 'head > link[rel="icon"]' )
736
732
const dynamicIconHref = $dynamicIcon . attr ( 'href' )
737
733
expect ( dynamicIconHref ) . toMatch (
738
- / \/ i c o n s \/ s t a t i c \/ d y n a m i c - r o u t e s \/ 1 2 3 \/ i c o n \. p n g \? b 7 6 e 8 f 0 2 8 2 c 9 3 c 8 e /
734
+ / \/ i c o n s \/ s t a t i c \/ d y n a m i c - r o u t e s \/ 1 2 3 \/ i c o n /
739
735
)
740
736
const dynamicIconRes = await next . fetch ( dynamicIconHref )
741
737
expect ( dynamicIconRes . status ) . toBe ( 200 )
742
738
} )
743
739
744
740
if ( isNextDev ) {
745
- it ( 'should handle hmr updates to the file icon' , async ( ) => {
741
+ it ( 'should handle updates to the file icon name and order ' , async ( ) => {
746
742
await next . renameFile (
747
743
'app/icons/static/icon.png' ,
748
744
'app/icons/static/icon2.png'
@@ -752,7 +748,7 @@ createNextDescribe(
752
748
const $ = await next . render$ ( '/icons/static' )
753
749
const $icon = $ ( 'head > link[rel="icon"][type!="image/x-icon"]' )
754
750
return $icon . attr ( 'href' )
755
- } , / \/ i c o n s \/ s t a t i c \/ i c o n 2 \. p n g \? b 7 6 e 8 f 0 2 8 2 c 9 3 c 8 e / )
751
+ } , / \/ i c o n s \/ s t a t i c \/ i c o n 2 / )
756
752
757
753
await next . renameFile (
758
754
'app/icons/static/icon2.png' ,
0 commit comments