improve tests

This commit is contained in:
sbriat
2023-02-08 12:19:52 +01:00
parent a45d91edcc
commit 4e1fb9a8d6
9 changed files with 128 additions and 22 deletions

View File

@@ -34,7 +34,7 @@ export class CreateTerritoryUseCase {
return territory;
} catch (error) {
let key = 'territory.create.crit';
if (error.message.includes('Already exists')) {
if (error.message.includes('already exists')) {
key = 'territory.create.warning';
}
this._loggingMessager.publish(