test: update tests

This commit is contained in:
2026-02-07 23:59:37 +05:00
parent 50c95c46a5
commit fa0ae4a620
9 changed files with 141 additions and 1294 deletions
+1
View File
@@ -6,6 +6,7 @@ export class AppError extends Error {
) {
super(message);
this.name = "AppError";
if (details) this.details = details;
}
}
+2 -2
View File
@@ -12,8 +12,8 @@ export function formatError(error: unknown, defaultMessage: string = "Произ
return `${defaultMessage}: Произошла неизвестная ошибка`;
}
export function createError(message: string, code: string, recoverable: boolean = true, details?: unknown): AppError {
return new AppError(message, code, recoverable);
export function createError(message: string, code: string, details?: unknown): AppError {
return new AppError(message, code, details);
}
export function logError(error: unknown, context?: string): void {