Angular - Testing
Given this test setup, what will
component.getUserName() return?const mockUserService = { getName: () => 'Alice' };
TestBed.configureTestingModule({
declarations: [UserComponent],
providers: [{ provide: UserService, useValue: mockUserService }]
});
const fixture = TestBed.createComponent(UserComponent);
const component = fixture.componentInstance;
