From af2d12134d23ef262d36be27b959309908cf329c Mon Sep 17 00:00:00 2001 From: Andrius Bentkus Date: Sat, 6 Apr 2024 10:26:52 +0300 Subject: [PATCH] test if ) at the end of the link is also taken into url --- test/unit/filters.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/unit/filters.js b/test/unit/filters.js index 8439f2f..946f44d 100644 --- a/test/unit/filters.js +++ b/test/unit/filters.js @@ -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 = 'http://test.com/(test)', + result = $filter('conditionalLinkify')(text); + expect(result).toEqual(link); + })); + }); describe('irclinky', function() {