UNPKG

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