describe('O serviço AdminService', () => {
let userService: AdminService';
beforeEach(() => {
TestBed.configureTestingModule({
providers: [
AdminService
]
});
userService = TestBed.get(AdminService);
});
it('deve ser criado.', inject([AdminService], (service: AdminService) => {
expect(service).toBeTruthy();
}));
}
Porque injetar AdminService se ele já esta sendo injetado no providers do TestBed