afterviewInit angular怎么写测试用例?

问题描述 投票:0回答:0
ngAfterViewInit() {
    var link = document.getElementById("mat-chip-list-0");
    link.removeAttribute("aria-multiselectable");
    link.removeAttribute("aria-orientation");
  }

如何使用 jest 为上述方法编写测试用例? 笑话版本:28 角度:14

unit-testing ts-jest angular-test
© www.soinside.com 2019 - 2024. All rights reserved.