forked from angular/code.angularjs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathangular.mock.html
15 lines (13 loc) · 926 Bytes
/
angular.mock.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<h1>angular.mock</h1>
<div class="angular-mock"><fieldset class="workInProgress"><legend>Work in Progress</legend>
This page is currently being revised. It might be incomplete or contain inaccuracies.</fieldset>
<p>The <code>angular.mock</code> object is a namespace for all built-in mock services that ship with angular.
It automatically replaces real services if the <code>angular-mocks.js</code> file is loaded after
<code>angular.js</code> and before any tests.</p>
<p>Built-in mocks:</p>
<ul>
<li><a href="#!/api/angular.mock.service.$browser"><code>$browser</code></a> - A mock implementation of the browser.</li>
<li><a href="#!/api/angular.mock.service.$exceptionHandler"><code>$exceptionHandler</code></a> - A mock implementation of
the angular service exception handler.</li>
<li><a href="#!/api/angular.mock.service.$log"><code>$log</code></a> - A mock implementation of the angular service log.</li>
</ul></div>