From b467a50bc75b7f4c0d9bcee521387eda460337bf Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 15 Nov 2010 12:15:27 -0800 Subject: generate keyword for searches; improved layout of doc --- docs/spec/collectSpec.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/spec') 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){ -- cgit v1.2.3