angular-cn/packages/platform-browser/test
Kara Erickson a96976e88f fix(core): remove deprecated `TestBed.deprecatedOverrideProvider` API (#30576)
BREAKING CHANGE

In PR #19558, we fixed a bug in `TestBed.overrideProvider` where
eager providers were not being instantiated correctly. However,
it turned out that since this bug had been around for quite a bit,
many apps were relying on the broken behavior where the providers
would not be instantiated. To assist in the transition, the
`TestBed.deprecatedOverrideProvider` method was temporarily
introduced to mimic the old behavior so that apps would have a
longer time period to migrate their code.

2 years and 3 versions later, it is time to remove the temporary
method. This commit removes `TestBed.deprecatedOverrideProvider`
altogether. Any usages of `TestBed.deprecatedOverrideProvider`
should be replaced with `TestBed.overrideProvider`. This may mean
that providers that were not created before will now be instantiated,
which could mean that your tests need to provide more mocks or stubs
for the dependencies of the newly instantiated providers.

PR Close #30576
2019-05-21 12:37:17 -07:00
..
browser fix(ivy): properly tree-shake away StaticInjector (#30219) 2019-04-30 21:35:54 -07:00
dom test(platform-browser): fix shadow dom test not working in firefox 65 (#29518) 2019-03-26 10:40:25 -07:00
security test(ivy): enable ivy tests for platform-browser (#27460) 2018-12-04 20:02:33 -08:00
static_assets refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
BUILD.bazel build: rules_nodejs 0.26.0 & use @npm instead of @ngdeps now that downstream angular build uses angular bundles (#28871) 2019-02-28 12:06:36 -08:00
browser_util_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
testing_public_spec.ts fix(core): remove deprecated `TestBed.deprecatedOverrideProvider` API (#30576) 2019-05-21 12:37:17 -07:00