fix: fix all biome
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { TestBed } from '@/testing';
|
||||
import { vi } from 'vitest';
|
||||
import { LoggerService } from '../../logging/logger.service';
|
||||
import { mockProvider } from '../../testing/mock';
|
||||
import { CryptoService } from '../../utils/crypto/crypto.service';
|
||||
@@ -12,9 +11,6 @@ describe('RandomService Tests', () => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [RandomService, mockProvider(LoggerService), CryptoService],
|
||||
});
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
randomService = TestBed.inject(RandomService);
|
||||
});
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { inject, Injectable } from 'injection-js';
|
||||
import { OpenIdConfiguration } from '../../config/openid-configuration';
|
||||
import { Injectable, inject } from 'injection-js';
|
||||
import type { OpenIdConfiguration } from '../../config/openid-configuration';
|
||||
import { LoggerService } from '../../logging/logger.service';
|
||||
import { CryptoService } from '../../utils/crypto/crypto.service';
|
||||
|
||||
@@ -37,7 +37,7 @@ export class RandomService {
|
||||
}
|
||||
|
||||
private toHex(dec: number): string {
|
||||
return ('0' + dec.toString(16)).substr(-2);
|
||||
return `0${dec.toString(16)}`.substr(-2);
|
||||
}
|
||||
|
||||
private randomString(length: number): string {
|
||||
|
||||
Reference in New Issue
Block a user