We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b7667c commit d86548bCopy full SHA for d86548b
src/pages/page1/page1.html
@@ -10,6 +10,8 @@
10
<ion-content padding>
11
<h3>Ionic Menu Starter</h3>
12
13
+ <img src="assets/icon/favicon.ico" alt="" />
14
+
15
<p>
16
If you get lost, the <a href="http://ionicframework.com/docs/v2">docs</a> will show you the way.
17
</p>
src/pages/page1/page1.spec.ts
@@ -41,4 +41,10 @@ describe('Page1', () => {
41
expect(h3.innerText).toMatch(/ionic/i,
42
'<h3> should say something about "Ionic"');
43
});
44
45
+ it('should show the favicon as <img>', () => {
46
+ fixture.detectChanges();
47
+ const img: HTMLImageElement = fixture.debugElement.query(By.css('img')).nativeElement;
48
+ expect(img.src).toContain('assets/icon/favicon.ico');
49
+ });
50
0 commit comments