auth => clean archi
This commit is contained in:
@@ -3,7 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ProjectPictureFormComponent } from './project-picture-form.component';
|
||||
import { provideRouter } from '@angular/router';
|
||||
import { ToastrService } from 'ngx-toastr';
|
||||
import { AuthService } from '@app/core/services/authentication/auth.service';
|
||||
import { PROJECT_REPOSITORY_TOKEN } from '@app/infrastructure/projects/project-repository.token';
|
||||
import { of } from 'rxjs';
|
||||
import { Project } from '@app/domain/projects/project.model';
|
||||
@@ -14,7 +13,6 @@ describe('ProjectPictureFormComponent', () => {
|
||||
let fixture: ComponentFixture<ProjectPictureFormComponent>;
|
||||
|
||||
let mockToastrService: Partial<ToastrService>;
|
||||
let mockAuthService: Partial<AuthService>;
|
||||
let mockProjectRepository: jest.Mocked<ProjectRepository>;
|
||||
|
||||
beforeEach(async () => {
|
||||
@@ -23,9 +21,6 @@ describe('ProjectPictureFormComponent', () => {
|
||||
error: jest.fn(),
|
||||
warning: jest.fn(),
|
||||
};
|
||||
mockAuthService = {
|
||||
updateUser: jest.fn(),
|
||||
};
|
||||
|
||||
mockProjectRepository = {
|
||||
create: jest.fn().mockReturnValue(of({} as Project)),
|
||||
@@ -39,7 +34,6 @@ describe('ProjectPictureFormComponent', () => {
|
||||
providers: [
|
||||
provideRouter([]),
|
||||
{ provide: ToastrService, useValue: mockToastrService },
|
||||
{ provide: AuthService, useValue: mockAuthService },
|
||||
{ provide: PROJECT_REPOSITORY_TOKEN, useValue: mockProjectRepository },
|
||||
],
|
||||
}).compileComponents();
|
||||
|
||||
Reference in New Issue
Block a user