diff --git a/test/__fixtures__/markdown/hello-astro.md b/test/__fixtures__/markdown/posts/hello-astro.md similarity index 100% rename from test/__fixtures__/markdown/hello-astro.md rename to test/__fixtures__/markdown/posts/hello-astro.md diff --git a/test/__fixtures__/markdown/hello-world.md b/test/__fixtures__/markdown/posts/hello-world.md similarity index 100% rename from test/__fixtures__/markdown/hello-world.md rename to test/__fixtures__/markdown/posts/hello-world.md diff --git a/test/redirects.test.ts b/test/redirects.test.ts index 95a57b7..be7386c 100644 --- a/test/redirects.test.ts +++ b/test/redirects.test.ts @@ -19,8 +19,8 @@ describe('getRedirects', async () => { expect(result).toStrictEqual({ '/hello-astro-old': '/hello-astroooooo', '/hello-astro-old-234837': '/hello-astroooooo', - '/hello-world-old': '/hello-world', - '/hello-world-old-234837': '/hello-world', + '/hello-world-old': '/posts/hello-world', + '/hello-world-old-234837': '/posts/hello-world', '/hello-markdown-old': '/hello-markdown', '/hello-markdown-old-234837': '/hello-markdown' }) diff --git a/test/utils.test.ts b/test/utils.test.ts index 348c759..dd35acf 100644 --- a/test/utils.test.ts +++ b/test/utils.test.ts @@ -18,7 +18,7 @@ describe('getMarkdownFiles', () => { describe('getMarkdownFrontmatter', () => { it('should extract frontmatter from a markdown file', async () => { const frontmatter = await getMarkdownFrontmatter( - './test/__fixtures__/markdown/hello-world.md' + './test/__fixtures__/markdown/hello-draft.md' ) expect(frontmatter).toBeInstanceOf(Object) expect(frontmatter.redirect_from).toBeDefined()