projects
/
examples
/
angular-tour-of-heroes
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIP: 6: Get Data from a Server i) Heroes and HTTP - Update heroes
[examples/angular-tour-of-heroes]
/
src
/
app
/
app.component.spec.ts
diff --git
a/src/app/app.component.spec.ts
b/src/app/app.component.spec.ts
index
38559f2
..
8f874ef
100644
(file)
--- a/
src/app/app.component.spec.ts
+++ b/
src/app/app.component.spec.ts
@@
-42,6
+42,7
@@
describe('AppComponent', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
- expect(compiled.querySelector('nav > a').textContent).toContain('Heroes');
+ expect(compiled.querySelector('nav > a:nth-child(1)').textContent).toContain('Dashboard');
+ expect(compiled.querySelector('nav > a:nth-child(2)').textContent).toContain('Heroes');
});
});
});
});