Skip to content

Commit

Permalink
Enhanced beforeEach in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fdodino committed Sep 28, 2018
1 parent 9238e88 commit 2b791b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/usuario/usuario.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ describe('UsuarioComponent', () => {
fixture = TestBed.createComponent(UsuarioComponent)
component = fixture.componentInstance
component.usuario = new Usuario("Guadalupe Gerschwin", "La vida es muy corta para poner una frase ingeniosa", Usuario.FEMENINO)
fixture.detectChanges()
})

it('should create', () => {
fixture.detectChanges()
expect(component).toBeTruthy()
})

it('a woman should appear with a rose icon', () => {
fixture.detectChanges()
const result = fixture.debugElement.nativeElement
expect(result.querySelector(".mat-accent")).toBeTruthy()
})
Expand Down

0 comments on commit 2b791b2

Please sign in to comment.