Skip to content

Commit

Permalink
Merge pull request #43 from fga-eps-mds/fix/tests-login-social
Browse files Browse the repository at this point in the history
Corrige testes de login social
  • Loading branch information
DaviMarinho authored Dec 12, 2023
2 parents 32d5dab + 1ea0dca commit b56ed35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/pages/login-social/login-social.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { of } from 'rxjs';
import { Component } from '@angular/core';

@Component({ template: '' })
class DummyComponent {}
class DummyComponent { }

describe('LoginSocialComponent', () => {
let component: LoginSocialComponent;
Expand All @@ -26,11 +26,11 @@ describe('LoginSocialComponent', () => {
}));

await TestBed.configureTestingModule({
declarations: [ LoginSocialComponent, DummyComponent ],
declarations: [LoginSocialComponent, DummyComponent],
imports: [
HttpClientTestingModule,
RouterTestingModule.withRoutes([
{ path: 'videos', component: DummyComponent },
{ path: 'catalog', component: DummyComponent },
{ path: 'editUser/:id', component: DummyComponent }
])
],
Expand Down Expand Up @@ -60,7 +60,7 @@ describe('LoginSocialComponent', () => {

mockSocialAuthService.signIn.and.returnValue(Promise.resolve(user));
await component.signInWithFB();

expect(mockSocialAuthService.signIn).toHaveBeenCalledWith(FacebookLoginProvider.PROVIDER_ID);
});

Expand Down

0 comments on commit b56ed35

Please sign in to comment.