源代碼:
it('should be created', async(() => {
expect(component).toBeTruthy();
}));
toBeTruthy的實作,用兩個邏輯操作符,檢測actual是否為true:
源代碼:
it('should be created', async(() => {
expect(component).toBeTruthy();
}));
toBeTruthy的實作,用兩個邏輯操作符,檢測actual是否為true: