mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 17:26:24 +00:00
lint + prettier
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
import {
|
||||
encrypt_api_key,
|
||||
decrypt_api_key,
|
||||
maybe_encrypt_api_key,
|
||||
is_encrypted_api_key,
|
||||
} from '../../../src/nest/common/crypto/apiKeyCrypto';
|
||||
|
||||
import { describe, it, expect, vi } from 'vitest';
|
||||
|
||||
// Inline factory to avoid vi.mock hoisting issue (no imported vars allowed)
|
||||
@@ -7,13 +14,6 @@ vi.mock('../../../src/config', () => ({
|
||||
updateJwtSecret: () => {},
|
||||
}));
|
||||
|
||||
import {
|
||||
encrypt_api_key,
|
||||
decrypt_api_key,
|
||||
maybe_encrypt_api_key,
|
||||
is_encrypted_api_key,
|
||||
} from '../../../src/nest/common/crypto/apiKeyCrypto';
|
||||
|
||||
describe('apiKeyCrypto', () => {
|
||||
const PLAINTEXT_KEY = 'my-secret-api-key-12345';
|
||||
const ENC_PREFIX = 'enc:v1:';
|
||||
|
||||
Reference in New Issue
Block a user