Skip to content

Commit

Permalink
Revert "EW-619 DataPort review testing part (#4442)" (#4490)
Browse files Browse the repository at this point in the history
This reverts commit a4364ec.
  • Loading branch information
WahlMartin authored Oct 23, 2023
1 parent bbcb506 commit 504e8d1
Show file tree
Hide file tree
Showing 28 changed files with 2,739 additions and 5,943 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { Test, TestingModule } from '@nestjs/testing';
import { AccountController } from './account.controller';
import { AccountUc } from '../uc/account.uc';

describe('account.controller', () => {
let module: TestingModule;
let controller: AccountController;
beforeAll(async () => {
module = await Test.createTestingModule({
providers: [
AccountController,
{
provide: AccountUc,
useValue: {},
},
],
}).compile();
controller = module.get(AccountController);
});

it('should be defined', () => {
expect(controller).toBeDefined();
});
});
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Body, Controller, Delete, Get, Param, Patch, Query } from '@nestjs/common';
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { Authenticate, CurrentUser } from '@src/modules/authentication/decorator/auth.decorator';
import { EntityNotFoundError, ForbiddenOperationError, ValidationError } from '@shared/common';
import { ICurrentUser } from '@modules/authentication';
import { Authenticate, CurrentUser } from '@modules/authentication/decorator/auth.decorator';
import { ICurrentUser } from '@src/modules/authentication';
import { AccountUc } from '../uc/account.uc';
import {
AccountByIdBodyParams,
Expand Down Expand Up @@ -33,8 +33,6 @@ export class AccountController {
@Query() query: AccountSearchQueryParams
): Promise<AccountSearchListResponse> {
return this.accountUc.searchAccounts(currentUser, query);

// TODO: mapping from domain to api dto should be a responsability of the controller (also every other function here)
}

@Get(':id')
Expand Down
Loading

0 comments on commit 504e8d1

Please sign in to comment.