Skip to content

Commit

Permalink
better hashtag plugin test
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrasser committed Dec 4, 2024
1 parent a049281 commit f9e4e56
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/spec/linkify-plugin-hashtag.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('linkify-plugin-hashtag', () => {

it('can parse hashtags after applying the plugin', () => {
expect(
linkify.find('There is a #hashtag #️⃣#YOLO_2015 #__swag__ and #1234 and #%^&*( #_ #__ should not work'),
linkify.find('There is a #hashtag 💃#YOLO_2015 #__swag__ and #1234 and #%^&*( #_ #__ should not work'),
).to.be.eql([
{
type: 'hashtag',
Expand All @@ -36,16 +36,16 @@ describe('linkify-plugin-hashtag', () => {
value: '#YOLO_2015',
href: '#YOLO_2015',
isLink: true,
start: 23,
end: 33,
start: 22,
end: 32,
},
{
type: 'hashtag',
value: '#__swag__',
href: '#__swag__',
isLink: true,
start: 34,
end: 43,
start: 33,
end: 42,
},
]);
});
Expand Down

0 comments on commit f9e4e56

Please sign in to comment.