Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Sep 26, 2024
1 parent a6d8bfb commit 3bf5eed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ describe('resolveRouteData', () => {
<video:family_friendly>yes</video:family_friendly>
<video:requires_subscription>no</video:requires_subscription>
<video:live>no</video:live>
<video:restriction relationship='allow'>IE GB US CA</video:restriction>
<video:platform relationship='allow'>web</video:platform>
<video:uploader info='https://www.example.com/users/grillymcgrillerson'>GrillyMcGrillerson</video:uploader>
<video:restriction relationship="allow">IE GB US CA</video:restriction>
<video:platform relationship="allow">web</video:platform>
<video:uploader info="https://www.example.com/users/grillymcgrillerson">GrillyMcGrillerson</video:uploader>
</video:video>
<lastmod>2021-01-01</lastmod>
<changefreq>weekly</changefreq>
Expand Down
10 changes: 2 additions & 8 deletions test/e2e/app-dir/metadata-dynamic-routes/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,11 @@ describe('app dir - metadata dynamic routes', () => {
<video:restriction relationship="allow">IE GB US CA</video:restriction>
<video:platform relationship="allow">web</video:platform>
<video:uploader info="https://www.example.com/users/grillymcgrillerson">GrillyMcGrillerson</video:uploader>
</video:video></url>
</video:video>
</url>
</urlset>
"
`)

// expect(xml).toContain(
// `<video:video>\n<video:title>example</video:title>\n<video:thumbnail_loc>https://example.com/image.jpg</video:thumbnail_loc>\n<video:description>this is the description</video:description>\n<video:content_loc>http://streamserver.example.com/video123.mp4</video:content_loc>\n<video:player_loc>https://www.example.com/videoplayer.php?video=123</video:player_loc>\n<video:duration>2</video:duration>\n<video:view_count>50</video:view_count>\n<video:tag>summer</video:tag>\n<video:rating>4</video:rating>\n<video:expiration_date>2025-09-16</video:expiration_date>\n<video:publication_date>2024-09-16</video:publication_date>\n<video:family_friendly>yes</video:family_friendly>\n<video:requires_subscription>no</video:requires_subscription>\n<video:live>no</video:live>\n<video:restriction relationship=\"allow\">IE GB US CA</video:restriction>\n<video:platform relationship=\"allow\">web</video:platform>\n<video:uploader info=\"https://www.example.com/users/grillymcgrillerson\">GrillyMcGrillerson</video:uploader>\n</video:video>`
// )
// expect(xml).toContain(
// `<video:video>\n<video:title>example</video:title>\n<video:thumbnail_loc>https://example.com/image.jpg</video:thumbnail_loc>\n<video:description>this is the description</video:description>\n<video:content_loc>http://streamserver.example.com/video123.mp4</video:content_loc>\n<video:player_loc>https://www.example.com/videoplayer.php?video=123</video:player_loc>\n<video:duration>2</video:duration>\n<video:view_count>50</video:view_count>\n<video:tag>summer</video:tag>\n<video:rating>4</video:rating>\n<video:expiration_date>2025-09-16</video:expiration_date>\n<video:publication_date>2024-09-16</video:publication_date>\n<video:family_friendly>yes</video:family_friendly>\n<video:requires_subscription>no</video:requires_subscription>\n<video:live>no</video:live>\n<video:restriction relationship=\"allow\">IE GB US CA</video:restriction>\n<video:platform relationship=\"allow\">web</video:platform>\n<video:uploader info=\"https://www.example.com/users/grillymcgrillerson\">GrillyMcGrillerson</video:uploader>\n</video:video>`
// )
})

if (isNextStart) {
Expand Down

0 comments on commit 3bf5eed

Please sign in to comment.