diff options
Diffstat (limited to 'docs/src/templates/js/docs.js')
| -rw-r--r-- | docs/src/templates/js/docs.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/src/templates/js/docs.js b/docs/src/templates/js/docs.js index 16042b3a..1deea88e 100644 --- a/docs/src/templates/js/docs.js +++ b/docs/src/templates/js/docs.js @@ -109,6 +109,8 @@ docsApp.controller.DocsNavigationCtrl = ['$scope', '$location', 'docsSearch', fu docsApp.serviceFactory.lunrSearch = function() { return function(properties) { + if (window.RUNNING_IN_NG_TEST_RUNNER) return null; + var engine = lunr(properties); return { store : function(values) { @@ -122,7 +124,10 @@ docsApp.serviceFactory.lunrSearch = function() { }; docsApp.serviceFactory.docsSearch = ['$rootScope','lunrSearch', 'NG_PAGES', - function($rootScope, lunrSearch, NG_PAGES) { + function($rootScope, lunrSearch, NG_PAGES) { + if (window.RUNNING_IN_NG_TEST_RUNNER) { + return null; + } var index = lunrSearch(function() { this.ref('id'); |
