Skip to content

Commit 1fb793c

Browse files
committed
Update courses-card-list.component.spec.ts
1 parent 18d512a commit 1fb793c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/courses/courses-card-list/courses-card-list.component.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ describe("CoursesCardListComponent", () => {
5252

5353
component.courses = setupCourses();
5454

55+
console.log(el.nativeElement.outerHTML); //is empty
56+
57+
//notify the DOM about changes
58+
fixture.detectChanges();
59+
5560
const cards = el.queryAll(By.css(".course-card"));
5661

5762
expect(cards).toBeTruthy("Could not find cards");

0 commit comments

Comments
 (0)