Skip to content

Commit

Permalink
chore: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Nov 25, 2024
1 parent 7ac6e12 commit eaf12df
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions test/integration/i18n.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,15 @@ describe('i18n', () => {
it('robots - default', async () => {
// extract the <head>
const txt = await $fetch('/robots.txt')
expect(txt).toMatchInlineSnapshot(`
"# START nuxt-robots (indexable)
User-agent: *
Disallow:
Sitemap: https://nuxtseo.com/sitemap_index.xml
# END nuxt-robots"
expect(txt.split('\n').map(s => s.trim())).toMatchInlineSnapshot(`
[
"# START nuxt-robots (indexable)",
"User-agent: *",
"Disallow:",
"",
"Sitemap: https://nuxtseo.com/sitemap_index.xml",
"# END nuxt-robots",
]
`)
})
it('schema.org - default', async () => {
Expand Down

0 comments on commit eaf12df

Please sign in to comment.