diff --git a/test/integration/i18n.test.ts b/test/integration/i18n.test.ts index b7367df..0f495c0 100644 --- a/test/integration/i18n.test.ts +++ b/test/integration/i18n.test.ts @@ -80,13 +80,15 @@ describe('i18n', () => { it('robots - default', async () => { // extract the 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 () => {