aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec/collectSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/spec/collectSpec.js')
-rw-r--r--docs/spec/collectSpec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/spec/collectSpec.js b/docs/spec/collectSpec.js
index b810f823..f20342b1 100644
--- a/docs/spec/collectSpec.js
+++ b/docs/spec/collectSpec.js
@@ -69,6 +69,14 @@ describe('collect', function(){
});
});
+ describe('keywords', function(){
+ var keywords = collect.keywords;
+ it('should collect keywords', function(){
+ expect(keywords('\nHello: World! @ignore.')).toEqual('hello world');
+ expect(keywords('The `ng:class-odd` and ')).toEqual('and ng:class-odd the');
+ });
+ });
+
});
function load(path){