Skip to content

Commit

Permalink
test: getMarkdownRelativeUrl trailingSlash (#1253)
Browse files Browse the repository at this point in the history
adamdbradley authored Sep 15, 2022
1 parent 93712ea commit 4d4246d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/qwik-city/buildtime/markdown/markdown-url.unit.ts
Original file line number Diff line number Diff line change
@@ -22,6 +22,11 @@ test('getMarkdownRelativeUrl', () => {
href: './getting-started/index.mdx#intro',
expect: '/docs/getting-started#intro',
},
{
href: './getting-started/index.mdx#intro',
trailingSlash: true,
expect: '/docs/getting-started/#intro',
},
{
href: '/link',
expect: '/link',
@@ -51,7 +56,7 @@ test('getMarkdownRelativeUrl', () => {
t.forEach((c) => {
const opts: NormalizedPluginOptions = {
basePathname: '/',
trailingSlash: false,
trailingSlash: !!c.trailingSlash,
routesDir: routesDir,
mdx: {},
baseUrl: '/',

0 comments on commit 4d4246d

Please sign in to comment.