Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 59802bc

Browse files
docs(ngMock): fix installation formatting
The `@installation` section should be formatted with markdown, not nunjucks template directives. Closes #14604
1 parent b0a35a7 commit 59802bc

File tree

1 file changed

+24
-38
lines changed

1 file changed

+24
-38
lines changed

src/ngMock/angular-mocks.js

Lines changed: 24 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2253,46 +2253,32 @@ angular.mock.$ComponentControllerProvider = ['$compileProvider', function($compi
22532253
*
22542254
* @installation
22552255
*
2256-
* <p>First, download the file:</p>
2257-
* <ul>
2258-
<li>
2259-
<a href="https://developers.google.com/speed/libraries/devguide#angularjs">Google CDN</a> e.g.
2260-
{% code %}"//ajax.googleapis.com/ajax/libs/angularjs/X.Y.Z/"{% endcode %}
2261-
</li>
2262-
<li>
2263-
<a href="https://www.npmjs.com/">NPM</a> e.g.
2264-
{% code %}npm install {$ doc.packageName $}@X.Y.Z{% endcode %}
2265-
</li>
2266-
<li>
2267-
<a href="http://bower.io">Bower</a><br> e.g.
2268-
{% code %}bower install {$ doc.packageName $}@X.Y.Z{% endcode %}
2269-
</li>
2270-
<li>
2271-
<a href="https://code.angularjs.org/">code.angularjs.org</a> (discouraged for
2272-
production use) e.g.
2273-
{% code %}"//code.angularjs.org/X.Y.Z/{$ doc.packageFile $}"{% endcode %}
2274-
</li>
2275-
</ul>
2276-
<p>where X.Y.Z is the AngularJS version you are running.</p>
2277-
2278-
<p>Then, configure your test runner to load `angular-mocks.js` after `angular.js`.
2279-
This example uses <a href="http://karma-runner.github.io/">Karma</a>:</p>
2280-
2281-
{% code %}
2282-
config.set({
2283-
files: [
2284-
'build/angular.js', // and other module files you need
2285-
'build/angular-mocks.js',
2286-
'<path/to/application/files>',
2287-
'<path/to/spec/files>'
2288-
]
2289-
});
2290-
{% endcode %}
2291-
2292-
<p>Including the `angular-mocks.js` file automatically adds the `ngMock` module, so your tests
2293-
are ready to go!</p>
2256+
* First, download the file:
2257+
* * [Google CDN](https://developers.google.com/speed/libraries/devguide#angularjs) e.g.
2258+
* `"//ajax.googleapis.com/ajax/libs/angularjs/X.Y.Z/"`
2259+
* * [NPM](https://www.npmjs.com/) e.g. `npm install {$ doc.packageName $}@X.Y.Z`
2260+
* * [Bower](http://bower.io) e.g. `bower install {$ doc.packageName $}@X.Y.Z`
2261+
* * [code.angularjs.org](https://code.angularjs.org/) (discouraged for production use) e.g.
2262+
* `"//code.angularjs.org/X.Y.Z/{$ doc.packageFile $}"`
2263+
*
2264+
* where X.Y.Z is the AngularJS version you are running.
2265+
*
2266+
* Then, configure your test runner to load `angular-mocks.js` after `angular.js`.
2267+
* This example uses <a href="http://karma-runner.github.io/">Karma</a>:
22942268
*
2269+
* ```
2270+
* config.set({
2271+
* files: [
2272+
* 'build/angular.js', // and other module files you need
2273+
* 'build/angular-mocks.js',
2274+
* '<path/to/application/files>',
2275+
* '<path/to/spec/files>'
2276+
* ]
2277+
* });
2278+
* ```
22952279
*
2280+
* Including the `angular-mocks.js` file automatically adds the `ngMock` module, so your tests
2281+
* are ready to go!
22962282
*/
22972283
angular.module('ngMock', ['ng']).provider({
22982284
$browser: angular.mock.$BrowserProvider,

0 commit comments

Comments
 (0)