Skip to content

Commit 688a8b2

Browse files
committed
fixed broken spec
1 parent 4a22a1e commit 688a8b2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/app/components/user/UserListPage.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,9 @@ export function main() {
7272
expect(gravatarDebugElement).toBeTruthy();
7373
expect(gravatarDebugElement.componentInstance.email).toEqual('[email protected]');
7474
expect(gravatarDebugElement.componentInstance.alt).toEqual('test1');
75-
});
7675

77-
it('can move to user-show page', () => {
78-
ctx.rootTC.detectChanges();
79-
expect(DOM.querySelector(cmpDebugElement.nativeElement, 'li>a').getAttribute('href'))
80-
.toEqual('/users/1');
76+
const userShowLink = cmpDebugElement.query(By.css('li>a')).nativeElement;
77+
expect(userShowLink.getAttribute('href')).toEqual('/users/1');
8178
});
8279

8380
});

0 commit comments

Comments
 (0)