tests fixes

This commit is contained in:
Gabriel Rosa
2022-07-19 16:22:24 -03:00
parent 9cdb0a5d38
commit 5ce8099c25
8 changed files with 81 additions and 9 deletions
+5 -1
View File
@@ -13,6 +13,10 @@ import ErrorCodes from '../utils/errorCodes';
import { User } from './user.decorator';
import { PERMISSIONS } from './permissions.enum';
const logger = {
info: (...args) => args,
error: (...args) => args,
};
@Controller('user')
class UserController {
@Get()
@@ -66,7 +70,7 @@ describe('user.decorator', () => {
},
{
provide: DadosferaLogger,
useValue: { logger: console },
useValue: { logger },
},
{
provide: APP_GUARD,