aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/directive/ngCspSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng/directive/ngCspSpec.js')
-rw-r--r--test/ng/directive/ngCspSpec.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ng/directive/ngCspSpec.js b/test/ng/directive/ngCspSpec.js
new file mode 100644
index 00000000..7a21b587
--- /dev/null
+++ b/test/ng/directive/ngCspSpec.js
@@ -0,0 +1,10 @@
+'use strict';
+
+describe('ngCsp', function() {
+
+ it('it should turn on CSP mode in $sniffer', inject(function($sniffer, $compile) {
+ expect($sniffer.csp).toBe(false);
+ $compile('<div ng-csp></div>');
+ expect($sniffer.csp).toBe(true);
+ }));
+});