Skip to content

Commit

Permalink
Add testing backend finish
Browse files Browse the repository at this point in the history
  • Loading branch information
raulgonzalez committed May 17, 2024
1 parent cafd7a8 commit d256844
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/router/characters.router.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ describe('Given a instance of the class CharacterRouter', () => {
create: jest.fn(),
update: jest.fn(),
delete: jest.fn(),
getByRace: jest.fn(),
} as unknown as CharacterController;

const authInterceptor = {
Expand Down
5 changes: 1 addition & 4 deletions src/router/characters.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ export class CharacterRouter {
);
this.router.patch(
'/:id',
// AuthInterceptor.authentication.bind(authInterceptor),
// authInterceptor
// .authorization(characterSqlRepo, 'userId')
// .bind(authInterceptor),

filesInterceptor.singleFile('imgUrl'),
filesInterceptor.cloudinaryUpload.bind(filesInterceptor),
controller.update.bind(controller)
Expand Down

0 comments on commit d256844

Please sign in to comment.