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

Commit 05d2703

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

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

0 commit comments

Comments
 (0)