ngMock.angular.mock.module.sharedInjector

Improve this Doc View Source angular.mock.module.sharedInjector

  1. function in module ngMock

NOTE: This function is declared ONLY WHEN running tests with jasmine or mocha

This function ensures a single injector will be used for all tests in a given describe context. This contrasts with the default behaviour where a new injec