diff options
| author | Julie | 2014-01-23 15:14:02 -0800 |
|---|---|---|
| committer | Caitlin Potter | 2014-01-28 14:12:52 -0500 |
| commit | ce37ae28687167f7b4274ba547f013980126a219 (patch) | |
| tree | b6e3164a0edad4a19f4afe298896178e6772103f /docs/component-spec/docsSearchSpec.js | |
| parent | 95f0bf9b526fda8964527c6d4aef1ad50a47f1f3 (diff) | |
| download | angular.js-ce37ae28687167f7b4274ba547f013980126a219.tar.bz2 | |
docs(cookbook): remove the cookbook docs
The cookbook docs are now superceded by the guide. They are no longer available
in any menus and the only way to find them is to search for them. Remove!
Closes #5967
Diffstat (limited to 'docs/component-spec/docsSearchSpec.js')
| -rw-r--r-- | docs/component-spec/docsSearchSpec.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/docs/component-spec/docsSearchSpec.js b/docs/component-spec/docsSearchSpec.js index 38e6937a..f5f8d36e 100644 --- a/docs/component-spec/docsSearchSpec.js +++ b/docs/component-spec/docsSearchSpec.js @@ -13,8 +13,7 @@ describe("docsSearch", function() { results[0] = { section: 'tutorial', shortName: 'item one', keywords: 'item, one, 1' }; results[1] = { section: 'tutorial', shortName: 'item man', keywords: 'item, man' }; results[2] = { section: 'api', shortName: 'item other', keywords: 'item, other' }; - results[3] = { section: 'cookbook', shortName: 'item cookbook', keywords: 'item, other' }; - results[4] = { section: 'api', shortName: 'ngRepeat', keywords: 'item, other' }; + results[3] = { section: 'api', shortName: 'ngRepeat', keywords: 'item, other' }; $provide.value('NG_PAGES', results); $provide.factory('lunrSearch', function() { @@ -41,19 +40,14 @@ describe("docsSearch", function() { expect(items['api'].length).toBe(2); })); - it("should place cookbook items in the tutorial", inject(function(docsSearch) { - var items = docsSearch('item'); - expect(items['tutorial'].length).toBe(3); - })); - it("should return all results without a search", inject(function(docsSearch) { var items = docsSearch(); - expect(items['tutorial'].length).toBe(3); + expect(items['tutorial'].length).toBe(2); expect(items['api'].length).toBe(2); })); it("should store values with and without a ng prefix", inject(function(docsSearch) { - expect(interceptedLunrResults[4].title).toBe('ngRepeat repeat'); + expect(interceptedLunrResults[3].title).toBe('ngRepeat repeat'); })); }); |
