From 610927d77b77700c5c61accd503a2af0fa51cfe6 Mon Sep 17 00:00:00 2001
From: Zach Dexter
Date: Tue, 9 Oct 2012 14:04:58 -0400
Subject: feat(linky): allow optional 'target' argument
Closes #1443
---
test/ngSanitize/filter/linkySpec.js | 7 +++++++
1 file changed, 7 insertions(+)
(limited to 'test')
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 me@example.com, but');
});
+
+ it('should handle target:', function() {
+ expect(linky("http://example.com", "_blank")).
+ toEqual('http://example.com')
+ expect(linky("http://example.com", "someNamedIFrame")).
+ toEqual('http://example.com')
+ });
});
--
cgit v1.2.3