Skip to content

Commit

Permalink
Match path translations
Browse files Browse the repository at this point in the history
  • Loading branch information
confused-Techie committed Nov 7, 2023
1 parent 46c0b3a commit 339f228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/ui-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ describe("Renders Markdown", () => {
expect(atom.ui.markdown.render(
"[Hello](./readme.md)",
{ rootDomain: "https://github.com/pulsar-edit/pulsar" }
)).toBe('<p><a href="https://github.com/pulsar-edit/pulsar/readme.md">Hello</a></p>\n');
)).toBe('<p><a href="https://github.com/pulsar-edit/pulsar/blob/HEAD/readme.md">Hello</a></p>\n');
});
it("resolves incomplete root links", () => {
expect(atom.ui.markdown.render(
"[Hello](/readme.md)",
{ rootDomain: "https://github.com/pulsar-edit/pulsar" }
)).toBe('<p><a href="https://github.com/pulsar-edit/pulsar/readme.md">Hello</a></p>\n');
)).toBe('<p><a href="https://github.com/pulsar-edit/pulsar/blob/HEADreadme.md">Hello</a></p>\n');
});
});

Expand Down

0 comments on commit 339f228

Please sign in to comment.