mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
9a27c5befb
Use defaults.bzl for the common macros PR Close #63384
Remove TestBed.get migration
Replaces the usages of the deprecated TestBed.get method with the non-deprecated TestBed.inject:
Before
import { TestBed } from '@angular/core/testing';
describe('test', () => {
it('should inject', () => {
console.log(TestBed.get(SOME_TOKEN));
});
});
After
import { TestBed } from '@angular/core/testing';
describe('test', () => {
it('should inject', () => {
console.log(TestBed.inject(SOME_TOKEN));
});
});