test if ) at the end of the link is also taken into url

This commit is contained in:
Andrius Bentkus 2024-04-06 10:26:52 +03:00
parent 543885a30e
commit af2d12134d
1 changed files with 7 additions and 0 deletions

View File

@ -38,6 +38,13 @@ describe('Filters', function() {
expect(result).toEqual(link);
}));
it('convert the entire words to links', angular.mock.inject(function($filter) {
var text = 'http://test.com/(test)',
link = '<a href="http://test.com/(test)" target="_blank" rel="noopener noreferrer">http://test.com/(test)</a>',
result = $filter('conditionalLinkify')(text);
expect(result).toEqual(link);
}));
});
describe('irclinky', function() {