Skip to content

Commit

Permalink
N21-1967 removed not neccessary services in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arnegns committed Jun 11, 2024
1 parent 7694899 commit 58f304a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { S3ClientAdapter } from '@infra/s3-client';
import { EntityManager } from '@mikro-orm/core';
import { ObjectId } from '@mikro-orm/mongodb';
import { AuthorizationReferenceService } from '@modules/authorization/domain';
import { InstanceService } from '@modules/instance';
import { SchoolService } from '@modules/school';
import { HttpService } from '@nestjs/axios';
import { ForbiddenException } from '@nestjs/common';
import { Test, TestingModule } from '@nestjs/testing';
Expand Down Expand Up @@ -124,14 +122,6 @@ describe('FilesStorageUC', () => {
provide: EntityManager,
useValue: createMock<EntityManager>(),
},
{
provide: SchoolService,
useValue: createMock<SchoolService>(),
},
{
provide: InstanceService,
useValue: createMock<InstanceService>(),
},
],
}).compile();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { S3ClientAdapter } from '@infra/s3-client';
import { EntityManager } from '@mikro-orm/core';
import { ObjectId } from '@mikro-orm/mongodb';
import { AuthorizationReferenceService } from '@modules/authorization/domain';
import { InstanceService } from '@modules/instance';
import { SchoolService } from '@modules/school';
import { HttpService } from '@nestjs/axios';
import { ForbiddenException } from '@nestjs/common';
import { Test, TestingModule } from '@nestjs/testing';
Expand Down Expand Up @@ -107,14 +105,6 @@ describe('FilesStorageUC delete methods', () => {
provide: EntityManager,
useValue: createMock<EntityManager>(),
},
{
provide: SchoolService,
useValue: createMock<SchoolService>(),
},
{
provide: InstanceService,
useValue: createMock<InstanceService>(),
},
],
}).compile();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { S3ClientAdapter } from '@infra/s3-client';
import { EntityManager } from '@mikro-orm/core';
import { ObjectId } from '@mikro-orm/mongodb';
import { AuthorizationReferenceService } from '@modules/authorization/domain';
import { InstanceService } from '@modules/instance';
import { SchoolService } from '@modules/school';
import { HttpService } from '@nestjs/axios';
import { Test, TestingModule } from '@nestjs/testing';
import { fileRecordFactory, setupEntities } from '@shared/testing';
Expand Down Expand Up @@ -86,14 +84,6 @@ describe('FilesStorageUC', () => {
provide: EntityManager,
useValue: createMock<EntityManager>(),
},
{
provide: SchoolService,
useValue: createMock<SchoolService>(),
},
{
provide: InstanceService,
useValue: createMock<InstanceService>(),
},
],
}).compile();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { S3ClientAdapter } from '@infra/s3-client';
import { EntityManager } from '@mikro-orm/core';
import { ObjectId } from '@mikro-orm/mongodb';
import { AuthorizationReferenceService } from '@modules/authorization/domain';
import { InstanceService } from '@modules/instance';
import { SchoolService } from '@modules/school';
import { HttpService } from '@nestjs/axios';
import { ForbiddenException } from '@nestjs/common';
import { Test, TestingModule } from '@nestjs/testing';
Expand Down Expand Up @@ -103,14 +101,6 @@ describe('FilesStorageUC', () => {
provide: EntityManager,
useValue: createMock<EntityManager>(),
},
{
provide: SchoolService,
useValue: createMock<SchoolService>(),
},
{
provide: InstanceService,
useValue: createMock<InstanceService>(),
},
],
}).compile();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { S3ClientAdapter } from '@infra/s3-client';
import { EntityManager } from '@mikro-orm/core';
import { ObjectId } from '@mikro-orm/mongodb';
import { AuthorizationReferenceService } from '@modules/authorization/domain';
import { InstanceService } from '@modules/instance';
import { SchoolService } from '@modules/school';
import { HttpService } from '@nestjs/axios';
import { Test, TestingModule } from '@nestjs/testing';
import { fileRecordFactory, setupEntities } from '@shared/testing';
Expand Down Expand Up @@ -79,14 +77,6 @@ describe('FilesStorageUC', () => {
provide: EntityManager,
useValue: createMock<EntityManager>(),
},
{
provide: SchoolService,
useValue: createMock<SchoolService>(),
},
{
provide: InstanceService,
useValue: createMock<InstanceService>(),
},
],
}).compile();

Expand Down

0 comments on commit 58f304a

Please sign in to comment.