以下代码片段来自。这里的it()函数在做什么(我假设它有一些传统的含义,因为否则似乎没有给出它的含义的上下文)?我在angular的网站上没有看到任何关于它的引用。由于它的名字,它也很难谷歌。上下文是关于代码测试的。scopeMock.username).toEqual('World');
// Assert that we read
我的任何组件都没有通过单元测试,所以我在项目中做了一个新的测试来尝试和诊断。/thing.component.scss']export class ThingComponent implements OnInit {
ngOnInitError: Illegal state: Could not load the summary for directive ThingComponent.中失败-