finished tests

This commit is contained in:
VLE2FE
2020-05-22 09:36:50 +02:00
parent 3048899247
commit fd7cf7b77a
20 changed files with 3431 additions and 1542 deletions

View File

@ -1,6 +1,10 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HomeComponent } from './home.component';
import {Component} from '@angular/core';
import {By} from '@angular/platform-browser';
@Component({selector: 'app-login', template: ''})
class LoginStubComponent {}
describe('HomeComponent', () => {
let component: HomeComponent;
@ -8,7 +12,10 @@ describe('HomeComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HomeComponent ]
declarations: [
HomeComponent,
LoginStubComponent
]
})
.compileComponents();
}));
@ -22,4 +29,8 @@ describe('HomeComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
it('should load the login component', () => {
expect(fixture.debugElement.query(By.css('app-login'))).toBeTruthy();
});
});