Skip to content

Commit

Permalink
update ui/msg tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Oct 13, 2024
1 parent b804624 commit 8e3c1d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/msg/tests/enhance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('test imgur matching', () => {
])('embed individual images', (input, link) => {
expect(imgurRegex.test(input)).toBe(true);
expect(enhance(input)).toBe(
`<a target="_blank" rel="noopener nofollow noreferrer" href="${link}"><img src="${link}"/></a>`,
`<a target="_blank" rel="nofollow noopener noreferrer" href="${link}"><img src="${link}"/></a>`,
);
});

Expand All @@ -21,7 +21,7 @@ describe('test imgur matching', () => {
])('albums and galleries should not be embedded', (input, link) => {
expect(imgurRegex.test(input)).toBe(false);
expect(enhance(input)).toBe(
`<a target="_blank" rel="noopener nofollow noreferrer" href="${input}">${link}</a>`,
`<a target="_blank" rel="nofollow noopener noreferrer" href="${input}">${link}</a>`,
);
});
});

0 comments on commit 8e3c1d2

Please sign in to comment.