Bom dia, Srs. Infelizmente, as expectativas do teste:
it(`(D) Should display board when data arrives`, () => {
const photos = buildPhotoList();
spyOn(service, 'getPhotos').and.returnValue(of(photos));
fixture.detectChanges();
const board = fixture.nativeElement.querySelector('app-photo-board');
const loader = fixture.nativeElement.querySelector('.loader');
expect(board).not.toBeNull();
expect(loader).toBeNull();
});
Estão resuntando em:
Expected null not to be null.
Expected <div _ngcontent-a-c18 class="loader">...</div> to be null.
Respectivamente.