aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ngSanitize/filter/linkySpec.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ngSanitize/filter/linkySpec.js b/test/ngSanitize/filter/linkySpec.js
index 0448159a..a3ef2070 100644
--- a/test/ngSanitize/filter/linkySpec.js
+++ b/test/ngSanitize/filter/linkySpec.js
@@ -24,4 +24,11 @@ describe('linky', function() {
expect(linky("send email to me@example.com, but")).
toEqual('send email to <a href="mailto:me@example.com">me@example.com</a>, but');
});
+
+ it('should handle target:', function() {
+ expect(linky("http://example.com", "_blank")).
+ toEqual('<a target="_blank" href="http://example.com">http://example.com</a>')
+ expect(linky("http://example.com", "someNamedIFrame")).
+ toEqual('<a target="someNamedIFrame" href="http://example.com">http://example.com</a>')
+ });
});