aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec/collectSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-11-15 12:15:27 -0800
committerMisko Hevery2010-11-15 12:28:08 -0800
commitb467a50bc75b7f4c0d9bcee521387eda460337bf (patch)
tree3360037c664cda94bc683663a9a7afe9df46eeb8 /docs/spec/collectSpec.js
parenta1652057a5e1fce1911b118a5d43629abe772ab6 (diff)
downloadangular.js-b467a50bc75b7f4c0d9bcee521387eda460337bf.tar.bz2
generate keyword for searches; improved layout of doc
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){