You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
@Narretz, you probably mean that it is available as window.angular.mock.dump, but @e-cloud is right: it is not available on window (window.dump) as documented.
Bug or docs issue ?
Since it isn't necessary on window, let's fix the docs to avoid breaking tests where window.dump is defined by the developer.
There are some situations I've found where not all ngMock globals are not truly published to window, mainly when transpilers like TypeScript or Babel are involved.
When using TypeScript, I've found that I've had to use angular.mock.module, but strangely inject worked fine.
Uh oh!
There was an error while loading. Please reload this page.
https://docs.angularjs.org/api/ngMock/function/angular.mock.dump
the docs now implys dump function is available on window. it's not true
The text was updated successfully, but these errors were encountered: