@@ -87,16 +87,16 @@ describe('resolveRouteData', () => {
8787 } ,
8888 ] )
8989 ) . toMatchInlineSnapshot ( `
90- "<?xml version="1.0" encoding="UTF-8"?>
91- <urlset xmlns="https ://www.sitemaps.org/schemas/sitemap/0.9">
92- <url>
93- <loc>https://example.com</loc>
94- <lastmod>2021-01-01</lastmod>
95- <changefreq>weekly</changefreq>
96- <priority>0.5</priority>
97- </url>
98- </urlset>
99- "
90+ "<?xml version="1.0" encoding="UTF-8"?>
91+ <urlset xmlns="http ://www.sitemaps.org/schemas/sitemap/0.9">
92+ <url>
93+ <loc>https://example.com</loc>
94+ <lastmod>2021-01-01</lastmod>
95+ <changefreq>weekly</changefreq>
96+ <priority>0.5</priority>
97+ </url>
98+ </urlset>
99+ "
100100 ` )
101101 } )
102102 it ( 'should resolve sitemap.xml with alternates' , ( ) => {
@@ -114,16 +114,16 @@ describe('resolveRouteData', () => {
114114 } ,
115115 ] )
116116 ) . toMatchInlineSnapshot ( `
117- "<?xml version="1.0" encoding="UTF-8"?>
118- <urlset xmlns="https ://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="https ://www.w3.org/1999/xhtml">
119- <url>
120- <loc>https://example.com</loc>
121- <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es" />
122- <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de" />
123- <lastmod>2021-01-01</lastmod>
124- </url>
125- </urlset>
126- "
117+ "<?xml version="1.0" encoding="UTF-8"?>
118+ <urlset xmlns="http ://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http ://www.w3.org/1999/xhtml">
119+ <url>
120+ <loc>https://example.com</loc>
121+ <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es" />
122+ <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de" />
123+ <lastmod>2021-01-01</lastmod>
124+ </url>
125+ </urlset>
126+ "
127127 ` )
128128 } )
129129 it ( 'should resolve sitemap.xml with images' , ( ) => {
@@ -138,19 +138,19 @@ describe('resolveRouteData', () => {
138138 } ,
139139 ] )
140140 ) . toMatchInlineSnapshot ( `
141- "<?xml version="1.0" encoding="UTF-8"?>
142- <urlset xmlns="https ://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="https ://www.google.com/schemas/sitemap-image/1.1">
143- <url>
144- <loc>https://example.com</loc>
145- <image:image>
146- <image:loc>https://example.com/image.jpg</image:loc>
147- </image:image>
148- <lastmod>2021-01-01</lastmod>
149- <changefreq>weekly</changefreq>
150- <priority>0.5</priority>
151- </url>
152- </urlset>
153- "
141+ "<?xml version="1.0" encoding="UTF-8"?>
142+ <urlset xmlns="http ://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http ://www.google.com/schemas/sitemap-image/1.1">
143+ <url>
144+ <loc>https://example.com</loc>
145+ <image:image>
146+ <image:loc>https://example.com/image.jpg</image:loc>
147+ </image:image>
148+ <lastmod>2021-01-01</lastmod>
149+ <changefreq>weekly</changefreq>
150+ <priority>0.5</priority>
151+ </url>
152+ </urlset>
153+ "
154154 ` )
155155 } )
156156 it ( 'should resolve sitemap.xml with videos' , ( ) => {
@@ -194,35 +194,35 @@ describe('resolveRouteData', () => {
194194 } ,
195195 ] )
196196 ) . toMatchInlineSnapshot ( `
197- "<?xml version="1.0" encoding="UTF-8"?>
198- <urlset xmlns="https ://www.sitemaps.org/schemas/sitemap/0.9" xmlns:video="https ://www.google.com/schemas/sitemap-video/1.1">
199- <url>
200- <loc>https://example.com</loc>
201- <video:video>
202- <video:title>example</video:title>
203- <video:thumbnail_loc>https://example.com/image.jpg</video:thumbnail_loc>
204- <video:description>this is the description</video:description>
205- <video:content_loc>http://streamserver.example.com/video123.mp4</video:content_loc>
206- <video:player_loc>https://www.example.com/videoplayer.php?video=123</video:player_loc>
207- <video:duration>2</video:duration>
208- <video:view_count>50</video:view_count>
209- <video:tag>summer</video:tag>
210- <video:rating>4</video:rating>
211- <video:expiration_date>2025-09-16</video:expiration_date>
212- <video:publication_date>2024-09-16</video:publication_date>
213- <video:family_friendly>yes</video:family_friendly>
214- <video:requires_subscription>no</video:requires_subscription>
215- <video:live>no</video:live>
216- <video:restriction relationship="allow">IE GB US CA</video:restriction>
217- <video:platform relationship="allow">web</video:platform>
218- <video:uploader info="https://www.example.com/users/grillymcgrillerson">GrillyMcGrillerson</video:uploader>
219- </video:video>
220- <lastmod>2021-01-01</lastmod>
221- <changefreq>weekly</changefreq>
222- <priority>0.5</priority>
223- </url>
224- </urlset>
225- "
197+ "<?xml version="1.0" encoding="UTF-8"?>
198+ <urlset xmlns="http ://www.sitemaps.org/schemas/sitemap/0.9" xmlns:video="http ://www.google.com/schemas/sitemap-video/1.1">
199+ <url>
200+ <loc>https://example.com</loc>
201+ <video:video>
202+ <video:title>example</video:title>
203+ <video:thumbnail_loc>https://example.com/image.jpg</video:thumbnail_loc>
204+ <video:description>this is the description</video:description>
205+ <video:content_loc>http://streamserver.example.com/video123.mp4</video:content_loc>
206+ <video:player_loc>https://www.example.com/videoplayer.php?video=123</video:player_loc>
207+ <video:duration>2</video:duration>
208+ <video:view_count>50</video:view_count>
209+ <video:tag>summer</video:tag>
210+ <video:rating>4</video:rating>
211+ <video:expiration_date>2025-09-16</video:expiration_date>
212+ <video:publication_date>2024-09-16</video:publication_date>
213+ <video:family_friendly>yes</video:family_friendly>
214+ <video:requires_subscription>no</video:requires_subscription>
215+ <video:live>no</video:live>
216+ <video:restriction relationship="allow">IE GB US CA</video:restriction>
217+ <video:platform relationship="allow">web</video:platform>
218+ <video:uploader info="https://www.example.com/users/grillymcgrillerson">GrillyMcGrillerson</video:uploader>
219+ </video:video>
220+ <lastmod>2021-01-01</lastmod>
221+ <changefreq>weekly</changefreq>
222+ <priority>0.5</priority>
223+ </url>
224+ </urlset>
225+ "
226226 ` )
227227 } )
228228 } )
0 commit comments