From d2751a58551139d5af56777febcb3d5d01f1b471 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 24 Sep 2023 11:19:46 +0100 Subject: [PATCH] test updates --- test/__fixtures__/markdown/{ => posts}/hello-astro.md | 0 test/__fixtures__/markdown/{ => posts}/hello-world.md | 0 test/redirects.test.ts | 4 ++-- test/utils.test.ts | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename test/__fixtures__/markdown/{ => posts}/hello-astro.md (100%) rename test/__fixtures__/markdown/{ => posts}/hello-world.md (100%) 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()