test: fix failing test for cozify

This commit is contained in:
Ayo Ayco 2025-04-27 17:29:16 +02:00
parent b3b8777a39
commit dd2f4fc0bb

View file

@ -18,7 +18,7 @@ describe('cozify()', async () => {
}) })
test('should add base url to href of links', async () => { test('should add base url to href of links', async () => {
const html = '<a href=#>hey</a>' const html = '<a href="#">hey</a>'
const result = await cozify(html, baseUrl) const result = await cozify(html, baseUrl)
expect(result).toContain('href="https://cozy.pub?url=#"') expect(result).toContain('href="https://cozy.pub?url=#"')
}) })