天天看點

Angular jasmine.expect單步調試

源代碼:

it('should be created', async(() => {
    expect(component).toBeTruthy();
  }));      
Angular jasmine.expect單步調試
Angular jasmine.expect單步調試
Angular jasmine.expect單步調試
Angular jasmine.expect單步調試

toBeTruthy的實作,用兩個邏輯操作符,檢測actual是否為true:

Angular jasmine.expect單步調試

繼續閱讀