diff options
| -rw-r--r-- | docs/src/ngdoc.js | 8 | ||||
| -rw-r--r-- | src/ngMock/angular-mocks.js | 2 | 
2 files changed, 9 insertions, 1 deletions
| diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 77c01b77..83aa992e 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -1401,6 +1401,14 @@ function explainModuleInstallation(moduleName){      modulePackage = 'angular-' + moduleName,      modulePackageFile = modulePackage + '.js'; +  // Deal with inconsistent ngMock naming - doing it verbosely and explicitly here +  // rather than cleverly interweaving it in the previous lines to make it obvious +  // what is going on +  if ( moduleName == 'mock' ) { +    modulePackage = 'angular-mocks'; +    modulePackageFile = modulePackage + '.js'; +  } +    return '<h1>Installation</h1>' +      '<p>First include <code>' + modulePackageFile +'</code> in your HTML:</p><pre><code>' +      '    <script src="angular.js">\n' + diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index 292ef4af..74b9c2d6 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -1729,7 +1729,7 @@ angular.mock.$RootElementProvider = function() {   * In addition, ngMock also extends various core ng services such that they can be   * inspected and controlled in a synchronous manner within test code.   * - * {@installModule mocks} + * {@installModule mock}   *   * <div doc-module-components="ngMock"></div>   * | 
