First, get the file:
npm install --save [email protected]or
yarn add [email protected]
bower install angular-mocks#X.Y.Z
where X.Y.Z is the AngularJS version you are running.
angular-mocks.js in your HTML:
<script src="path/to/angular.js"></script> <script src="path/to/angular-mocks.js"></script>
Finally, load the module in your application by adding it as a dependent module:
With that you're ready to get started!
ngMockE2E is an AngularJS module which contains mocks suitable for end-to-end testing. Currently there is only one mock present in this module - the e2e $httpBackend mock.
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 3.0.