Skip to content

Commit

Permalink
Merge pull request #55 from techfg/fix/typings-and-tests
Browse files Browse the repository at this point in the history
fix: type import and test name
  • Loading branch information
vernak2539 committed May 3, 2024
2 parents da651dc + ad1acca commit 00ea4ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ describe("astroRehypeRelativeMarkdownLinks", () => {
assert.equal(actual, expected);
});

test("should not contain trailing slash when option not specified and file contains and custom slug contains", async () => {
test("should contain trailing slash when option not specified and file contains and custom slug contains", async () => {
const input =
'<a href="./fixtures/dir-test-custom-slug/with-trailing-slash.md/">foo</a>';
const { value: actual } = await rehype()
Expand Down
2 changes: 1 addition & 1 deletion src/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const applyTrailingSlash = (
return resolvedUrl;
};

/** @type {import('./utils').ShouldProcessFile} */
/** @type {import('./utils.d.ts').ShouldProcessFile} */
export function shouldProcessFile(npath) {
// Astro excludes files that include underscore in any segment of the path under contentDIr
// see https://github.com/withastro/astro/blob/0fec72b35cccf80b66a85664877ca9dcc94114aa/packages/astro/src/content/utils.ts#L253
Expand Down

0 comments on commit 00ea4ed

Please sign in to comment.