mirror of
https://github.com/kremalicious/astro-redirect-from.git
synced 2024-11-22 01:47:01 +01:00
test updates
This commit is contained in:
parent
3d921d93aa
commit
d2751a5855
@ -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'
|
||||
})
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user