问题描述
如何涵盖 此商店 。管( 选择(getRoles) 跳过(1), takeWhile(角色=>角色&&角色。长度> 0) ) .subscribe((roles:IRole [])=>(this.roles =角色)); 在以下代码段中
constructor(
private store: Store<IState>,private uiService: UiService,private translation: TranslationService
) {
this.store
.pipe(
select(getRoles),skip(1),takeWhile(roles => roles && roles.length > 0)//unable to cover
)
.subscribe((roles: IRole[]) => (this.roles = roles));//unable to cover
this.getRoleToEdit$ = this.store
.pipe(
select(getRoleToBeEdited),skip(1)
)
.subscribe((role: IRole) => (this.selectedRoleToEdit = role));
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)