©
This document usesPHP Chinese website manualRelease
ngMock
ThengMock
module provides support to inject and mock Angular services into unit tests. 此外, ngMock also extends various core ng services such that they can be inspected and controlled in a synchronous manner within test code.
First includeangular-mock.js
in your HTML: