aboutsummaryrefslogtreecommitdiffstats
path: root/docs/component-spec/docsSearchSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/component-spec/docsSearchSpec.js')
-rw-r--r--docs/component-spec/docsSearchSpec.js12
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');
}));
});