Skip to content

Commit

Permalink
EW-893 removing unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
psachmann committed Jun 12, 2024
1 parent b4892ac commit f64056b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { Test, TestingModule } from '@nestjs/testing';
import { EntityNotFoundError } from '@shared/common';
import { IdmAccount } from '@shared/domain/interface';
import { EntityId } from '@shared/domain/types';
import { UserRepo } from '@shared/repo';
import { setupEntities, userFactory } from '@shared/testing';
import { Logger } from '@src/core/logger';
import bcrypt from 'bcryptjs';
Expand Down Expand Up @@ -59,10 +58,6 @@ describe('AccountDbService', () => {
provide: IdentityManagementService,
useValue: createMock<IdentityManagementService>(),
},
{
provide: UserRepo,
useValue: createMock<UserRepo>(),
},
],
}).compile();
accountRepo = module.get(AccountRepo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config/dist/config.service';
import { EntityNotFoundError } from '@shared/common';
import { Counted, EntityId } from '@shared/domain/types';
import { UserRepo } from '@shared/repo';
import bcrypt from 'bcryptjs';
import { AccountConfig } from '../../account-config';
import { AccountRepo } from '../../repo/micro-orm/account.repo';
Expand All @@ -17,8 +16,7 @@ export class AccountServiceDb extends AbstractAccountService {
constructor(
private readonly accountRepo: AccountRepo,
private readonly idmService: IdentityManagementService,
private readonly configService: ConfigService<AccountConfig, true>,
private readonly userRepo: UserRepo
private readonly configService: ConfigService<AccountConfig, true>
) {
super();
}
Expand Down

0 comments on commit f64056b

Please sign in to comment.