mirror of
https://gitlab.com/mobicoop/v3/service/auth.git
synced 2026-03-24 16:15:49 +00:00
refactor message broker
This commit is contained in:
@@ -10,7 +10,7 @@ import { UpdateUsernameUseCase } from '../../domain/usecases/update-username.use
|
||||
import { CommandBus } from '@nestjs/cqrs';
|
||||
import { UsernameProfile } from '../../mappers/username.profile';
|
||||
import { BadRequestException } from '@nestjs/common';
|
||||
import { LoggingMessager } from '../../adapters/secondaries/logging.messager';
|
||||
import { Messager } from '../../adapters/secondaries/messager';
|
||||
|
||||
const existingUsername = {
|
||||
uuid: 'bb281075-1b98-4456-89d6-c643d3044a91',
|
||||
@@ -100,7 +100,7 @@ describe('UpdateUsernameUseCase', () => {
|
||||
useValue: mockAddUsernameCommand,
|
||||
},
|
||||
{
|
||||
provide: LoggingMessager,
|
||||
provide: Messager,
|
||||
useValue: mockMessager,
|
||||
},
|
||||
UpdateUsernameUseCase,
|
||||
|
||||
Reference in New Issue
Block a user