diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-11-09 15:23:49 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-11-09 16:12:48 -0500 |
| commit | 73d79002fe6018ab12457b37bdaeb76ff2800213 (patch) | |
| tree | cc2c6a66617e573f55c37c827dd0d757fd4507e5 /ui/lib | |
| parent | b7a3e888e7451a5ca11522074379c33c6f94aecc (diff) | |
Update (most) Node dependencies.
The `jsdom` upgrade entails upgrading Node, as something changed internally to jsdom in how it imports other modules.
Upgrading vitest caused the details of some of our test cases to change, but the semantics of the affected tests are the same. They also split resetting mocks from resetting mocks' behaviours, which required a small config change to preserve our tests' correctness.
Diffstat (limited to 'ui/lib')
| -rw-r--r-- | ui/lib/markdown.test.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/lib/markdown.test.js b/ui/lib/markdown.test.js index 7aa10b1..cf84bb2 100644 --- a/ui/lib/markdown.test.js +++ b/ui/lib/markdown.test.js @@ -6,7 +6,7 @@ describe('render', async () => { const markdown = `[a link](https://example.com?foo=bar)`; const html = md.render(markdown); expect(html).toStrictEqual( - `<p><a href="https://example.com?foo=bar" rel="noreferrer" target="_blank">a link</a></p> + `<p><a target="_blank" rel="noreferrer" href="https://example.com?foo=bar">a link</a></p> `, ); }); @@ -15,7 +15,7 @@ describe('render', async () => { const markdown = `[a link](https://example.com?foo=bar "what title")`; const html = md.render(markdown); expect(html).toStrictEqual( - `<p><a href="https://example.com?foo=bar" title="what title" rel="noreferrer" target="_blank">a link</a></p> + `<p><a target="_blank" rel="noreferrer" title="what title" href="https://example.com?foo=bar">a link</a></p> `, ); }); @@ -27,7 +27,7 @@ describe('render', async () => { [a link]: https://example.com?foo=bar`; const html = md.render(markdown); expect(html).toStrictEqual( - `<p><a href="https://example.com?foo=bar" rel="noreferrer" target="_blank">a link</a></p> + `<p><a target="_blank" rel="noreferrer" href="https://example.com?foo=bar">a link</a></p> `, ); }); @@ -39,7 +39,7 @@ describe('render', async () => { [a link]: https://example.com?foo=bar "what title"`; const html = md.render(markdown); expect(html).toStrictEqual( - `<p><a href="https://example.com?foo=bar" title="what title" rel="noreferrer" target="_blank">a link</a></p> + `<p><a target="_blank" rel="noreferrer" title="what title" href="https://example.com?foo=bar">a link</a></p> `, ); }); @@ -48,7 +48,7 @@ describe('render', async () => { const markdown = `[a _link_](https://example.com?foo=bar)`; const html = md.render(markdown); expect(html).toStrictEqual( - `<p><a href="https://example.com?foo=bar" rel="noreferrer" target="_blank">a <em>link</em></a></p> + `<p><a target="_blank" rel="noreferrer" href="https://example.com?foo=bar">a <em>link</em></a></p> `, ); }); |
