Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Commit

Permalink
fix test for alpha 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Ks89 committed Apr 9, 2017
1 parent f7ba117 commit c1aa1c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/pages/project-list/project-list.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ describe('ProjectListComponent', () => {
// expect(projectLeftHrefs[1].nativeElement.getAttribute('href')).toBe(BASEURL + PROJECTS[1]._id);
// expect(projectLeftHrefs[2].nativeElement.getAttribute('href')).toBe(BASEURL + PROJECTS[2]._id);

const projectLeftImages: DebugElement[] = element.queryAll(By.css('img.media-object'));
const projectLeftImages: DebugElement[] = element.queryAll(By.css('img.d-flex.mr-3'));
expect(projectLeftImages.length).toBe(3);
expect(projectLeftImages[0].nativeElement.getAttribute('src')).toBe(PROJECTS[0].iconPath);
expect(projectLeftImages[1].nativeElement.getAttribute('src')).toBe(PROJECTS[1].iconPath);
expect(projectLeftImages[2].nativeElement.getAttribute('src')).toBe(PROJECTS[2].iconPath);

const projectHeaders: DebugElement[] = element.queryAll(By.css('h4.media-heading a'));
const projectHeaders: DebugElement[] = element.queryAll(By.css('h4.mt-0.mb-1 a'));
expect(projectHeaders.length).toBe(6);
expect(projectHeaders[1].nativeElement.textContent).toBe(PROJECTS[0].name);
expect(projectHeaders[3].nativeElement.textContent).toBe(PROJECTS[1].name);
Expand Down

0 comments on commit c1aa1c2

Please sign in to comment.