Angular jasmine.expect单步调试 已注销 2021-04-26 124 阅读1分钟 源代码: it('should be created', async(() => { expect(component).toBeTruthy(); })); 这是一个工厂方法,为spec返回一个expectation: toBeTruthy的实现,用两个逻辑操作符,检测actual是否为true: 要获取更多Jerry的原创文章,请关注公众号"汪子熙":