我正在尝试使用jest / jasmine测试排序,但是我的调用不在订阅方法内进行了尝试,但是没有成功
ngAfterViewInit() {
this.store.store$.subscribe((data: PaymentState) => {
this.table.renderRows();
});
this.sort.sortChange.subscribe(() => {
const sortOrder = `${this.sort.active} ${this.sort.direction}`; //no executing this line
this.changeSort(sortOrder);
});
}
请建议如何测试上述方法