我阅读了以下问题Subscribe is deprecated: Use an observer instead of an error callback
但我还有另一种情况
expect(closedSubscription.subscribe).toHaveBeenCalledTimes(2);
棉绒写了下一个错误:
subscribe is deprecated: Use an observer instead of a complete callback
如何解决这种情况?