1 | # packaged angular-mocks
|
2 |
|
3 | **This package contains the legacy AngularJS (version 1.x). AngularJS support has officially ended
|
4 | as of January 2022.
|
5 | [See what ending support means](https://docs.angularjs.org/misc/version-support-status) and
|
6 | [read the end of life announcement](https://goo.gle/angularjs-end-of-life).**
|
7 |
|
8 | **[See `@angular/core` for the actively supported Angular](https://npmjs.com/@angular/core).**
|
9 |
|
10 | ## Install
|
11 |
|
12 | You can install this package either with `npm` or with `bower`.
|
13 |
|
14 | ### npm
|
15 |
|
16 | ```shell
|
17 | npm install angular-mocks
|
18 | ```
|
19 |
|
20 | You can `require` ngMock modules:
|
21 |
|
22 | ```js
|
23 | var angular = require('angular');
|
24 | angular.module('myMod', [
|
25 | require('angular-animate'),
|
26 | require('angular-mocks/ngMock'),
|
27 | require('angular-mocks/ngAnimateMock')
|
28 | ]);
|
29 | ```
|
30 |
|
31 | ### bower
|
32 |
|
33 | ```shell
|
34 | bower install angular-mocks
|
35 | ```
|
36 |
|
37 | The mocks are then available at `bower_components/angular-mocks/angular-mocks.js`.
|
38 |
|
39 | ## Documentation
|
40 |
|
41 | Documentation is available on the
|
42 | [AngularJS docs site](https://docs.angularjs.org/guide/unit-testing).
|
43 |
|
44 | ## License
|
45 |
|
46 | The MIT License
|
47 |
|
48 | Copyright (c) 2022 Google LLC
|
49 |
|
50 | Permission is hereby granted, free of charge, to any person obtaining a copy
|
51 | of this software and associated documentation files (the "Software"), to deal
|
52 | in the Software without restriction, including without limitation the rights
|
53 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
54 | copies of the Software, and to permit persons to whom the Software is
|
55 | furnished to do so, subject to the following conditions:
|
56 |
|
57 | The above copyright notice and this permission notice shall be included in
|
58 | all copies or substantial portions of the Software.
|
59 |
|
60 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
61 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
62 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
63 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
64 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
65 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
66 | THE SOFTWARE.
|