From 41f0c63db751c37f28976c2f2799b880553ba76c Mon Sep 17 00:00:00 2001 From: Steve Mao Date: Fri, 13 May 2016 13:47:37 +1000 Subject: [PATCH] docs(ngMock): use master installation template The inline installation can't display the proper context. On the website, it shows something like ``` Google CDN e.g. {% code %}"//ajax.googleapis.com/ajax/libs/angularjs/X.Y.Z/"{% endcode %} ``` --- src/ngMock/angular-mocks.js | 43 ------------------------------------- 1 file changed, 43 deletions(-) diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index 8bf4bcc7d7b9..87719d1d4cea 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -2251,49 +2251,6 @@ angular.mock.$ComponentControllerProvider = ['$compileProvider', function($compi * * *
- * - * @installation - * - *

First, download the file:

- * -

where X.Y.Z is the AngularJS version you are running.

- -

Then, configure your test runner to load `angular-mocks.js` after `angular.js`. - This example uses Karma:

- - {% code %} - config.set({ - files: [ - 'build/angular.js', // and other module files you need - 'build/angular-mocks.js', - '', - '' - ] - }); - {% endcode %} - -

Including the `angular-mocks.js` file automatically adds the `ngMock` module, so your tests - are ready to go!

- * - * */ angular.module('ngMock', ['ng']).provider({ $browser: angular.mock.$BrowserProvider,