1
0
mirror of https://github.com/kremalicious/astro-redirect-from.git synced 2024-12-22 09:23:21 +01:00

test updates

This commit is contained in:
Matthias Kretschmann 2023-09-24 11:19:46 +01:00
parent 3d921d93aa
commit d2751a5855
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 3 additions and 3 deletions

View File

@ -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'
})

View File

@ -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()