test: fix failing test for cozify
This commit is contained in:
parent
b3b8777a39
commit
dd2f4fc0bb
1 changed files with 1 additions and 1 deletions
|
@ -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=#"')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue