Skip to content

Commit

Permalink
Adiciona mudanças nos testes
Browse files Browse the repository at this point in the history
Signed-off-by: DaviMarinho <[email protected]>
  • Loading branch information
DaviMarinho committed Dec 9, 2023
1 parent a650333 commit a20f226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/pages/login/login.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="flex justify-start items-center text-blue-brand underline pl-4 cursor-pointer" (click)="navigator('/register')">
Cadastre-se
</div>
<div class="pt-4 flex justify-start items-center text-blue-brand underline pl-4 cursor-pointer" (click)="navigator('/loginsocial')">
<div class="pt-4 flex justify-start items-center text-blue-brand underline pl-4 cursor-pointer" (click)="navigator('/loginsocial')">
Login com redes sociais
</div>
</form>
Expand Down
6 changes: 3 additions & 3 deletions src/app/pages/login/login.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ describe('LoginComponent', () => {

it('should call navigator method when "Login com redes sociais" is clicked', () => {
spyOn(component, 'navigator').and.callThrough();
const loginsocial = fixture.nativeElement.querySelector('.text-blue-brand');
loginsocial.click();
const loginSocial = fixture.nativeElement.querySelector('.text-blue-brand');
loginSocial.click();

expect(component.navigator).toHaveBeenCalledWith('/login-social');
expect(component.navigator).toHaveBeenCalledWith('/loginsocial');
});

it('should call login and return an error', () => {
Expand Down

0 comments on commit a20f226

Please sign in to comment.