@@ -18,23 +18,23 @@ describe('simpleHead component in ssr', () => {
1818
1919 const { headTags } = await renderSSRHead ( head )
2020 expect ( headTags ) . toMatchInlineSnapshot ( `
21- "<meta name="viewport" content="width=device-width, initial-scale=1">
22- <title>Default Title 2</title>
23- <script async src="https://example.com/async-script.js"></script>
24- <script noModule src="https://example.com/nomodule.js"></script>
25- <link rel="stylesheet" href="default-styles.css">
26- <style>body { background-color: #f0f0f0; }</style>
27- <link rel="preload" href="https://example.com/font.woff2" as="font" type="font/woff2">
28- <script defer src="https://example.com/defer-script .js"></script>
29- <link rel="dns-prefetch" href=" //example.com" >
30- <link rel="prefetch" href="https: //example.com/next-page ">
31- <link rel="prerender " href="https://example.com/next-page">
32- <meta name="description" content="Default Description ">
33- <meta http-equiv="Content-Security-Policy " content="default-src 'self' ">
34- <link rel="icon" href="favicon.ico ">
35- <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","name":"Example","url":"https://www.example.com"}</script >
36- <script type="module" src=" https://example.com/module.js"> </script>"
37- ` )
21+ "<meta name="viewport" content="width=device-width, initial-scale=1">
22+ <title>Default Title 2</title>
23+ <script async src="https://example.com/async-script.js"></script>
24+ <script noModule src="https://example.com/nomodule.js"></script>
25+ <link rel="stylesheet" href="default-styles.css">
26+ <style>body { background-color: #f0f0f0; }</style>
27+ <link rel="preload" href="https://example.com/font.woff2" as="font" type="font/woff2">
28+ <script type="module" src="https://example.com/module .js"></script>
29+ <script defer src="https: //example.com/defer-script.js"></script >
30+ <link rel="dns- prefetch" href="https://github.com//example.com">
31+ <link rel="prefetch " href="https://example.com/next-page">
32+ <link rel="prerender" href="https://example.com/next-page ">
33+ <meta name="description " content="Default Description ">
34+ <meta http-equiv="Content-Security-Policy" content="default-src 'self' ">
35+ <link rel="icon" href="favicon.ico" >
36+ <script type="application/ld+json">{"@context":" https://schema.org","@type":"WebSite","name":"Example","url":"https://www.example.com"} </script>"
37+ ` )
3838 } )
3939 it ( 'renders head tags correctly with SSR' , async ( ) => {
4040 const head = createHead ( )
@@ -60,15 +60,15 @@ describe('simpleHead component in ssr', () => {
6060 <link rel="stylesheet" href="default-styles.css">
6161 <style>body { background-color: #f0f0f0; }</style>
6262 <link rel="preload" href="https://example.com/font.woff2" as="font" type="font/woff2">
63+ <script type="module" src="https://example.com/module.js"></script>
6364 <script defer src="https://example.com/defer-script.js"></script>
6465 <link rel="dns-prefetch" href="//example.com">
6566 <link rel="prefetch" href="https://example.com/next-page">
6667 <link rel="prerender" href="https://example.com/next-page">
6768 <meta name="description" content="Default Description">
6869 <meta http-equiv="Content-Security-Policy" content="default-src 'self'">
6970 <link rel="icon" href="favicon.ico">
70- <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","name":"Example","url":"https://www.example.com"}</script>
71- <script type="module" src="https://example.com/module.js"></script>"
71+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","name":"Example","url":"https://www.example.com"}</script>"
7272 ` )
7373 } )
7474} )
0 commit comments