fix: fix all biome
This commit is contained in:
@@ -1,17 +1,20 @@
|
||||
import { Injectable } from 'injection-js';
|
||||
import { AbstractLoggerService } from './abstract-logger.service';
|
||||
import type { AbstractLoggerService } from './abstract-logger.service';
|
||||
|
||||
@Injectable()
|
||||
export class ConsoleLoggerService implements AbstractLoggerService {
|
||||
logError(message: string | object, ...args: any[]): void {
|
||||
// biome-ignore lint/suspicious/noConsole: <explanation>
|
||||
console.error(message, ...args);
|
||||
}
|
||||
|
||||
logWarning(message: string | object, ...args: any[]): void {
|
||||
// biome-ignore lint/suspicious/noConsole: <explanation>
|
||||
console.warn(message, ...args);
|
||||
}
|
||||
|
||||
logDebug(message: string | object, ...args: any[]): void {
|
||||
// biome-ignore lint/suspicious/noConsole: <explanation>
|
||||
console.debug(message, ...args);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export enum LogLevel {
|
||||
None,
|
||||
Debug,
|
||||
Warn,
|
||||
Error,
|
||||
None = 0,
|
||||
Debug = 1,
|
||||
Warn = 2,
|
||||
Error = 3,
|
||||
}
|
||||
|
||||
@@ -15,9 +15,6 @@ describe('Logger Service', () => {
|
||||
{ provide: AbstractLoggerService, useClass: ConsoleLoggerService },
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
loggerService = TestBed.inject(LoggerService);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user