📅  最后修改于: 2022-03-11 15:03:37.799000             🧑  作者: Mango
const loginResult = '';
const spy = spyOn(authService, 'login').and.callFake(() => {
return Observable.from([loginResult]);
})