Fix Test Issues
This commit is contained in:
parent
99ae6b1dd0
commit
056cd60d0d
@ -28,9 +28,9 @@ describe('AppComponent', () => {
|
|||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
const app = fixture.nativeElement;
|
const app = fixture.nativeElement;
|
||||||
const menuItems = app.querySelectorAll('ion-label');
|
const menuItems = app.querySelectorAll('ion-label');
|
||||||
expect(menuItems.length).toEqual(12);
|
expect(menuItems.length).toEqual(4);
|
||||||
expect(menuItems[0].textContent).toContain('Inbox');
|
expect(menuItems[0].textContent).toContain('Login');
|
||||||
expect(menuItems[1].textContent).toContain('Outbox');
|
expect(menuItems[1].textContent).toContain('Register');
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('should have urls', waitForAsync(() => {
|
it('should have urls', waitForAsync(() => {
|
||||||
@ -38,9 +38,9 @@ describe('AppComponent', () => {
|
|||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
const app = fixture.nativeElement;
|
const app = fixture.nativeElement;
|
||||||
const menuItems = app.querySelectorAll('ion-item');
|
const menuItems = app.querySelectorAll('ion-item');
|
||||||
expect(menuItems.length).toEqual(12);
|
expect(menuItems.length).toEqual(4);
|
||||||
expect(menuItems[0].getAttribute('ng-reflect-router-link')).toEqual('/folder/Inbox');
|
expect(menuItems[0].getAttribute('ng-reflect-router-link')).toEqual('/login');
|
||||||
expect(menuItems[1].getAttribute('ng-reflect-router-link')).toEqual('/folder/Outbox');
|
expect(menuItems[1].getAttribute('ng-reflect-router-link')).toEqual('/register');
|
||||||
}));
|
}));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user