showUserInfo(id: number) {
this.usuarioSelecionado = id;
this.mostrarConteudo = this.mostrarConteudo ? false : true;
}
我正在规范中这样做,试图传递一个布尔值,但没有成功:
it('show more informations about the user',() => {
expect(this.component.mostrarUsuarioInfo(this.id)).toBe('true')
});