refactor(auth): rename id to uuid in AuthStatus and mock uuid in tests
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
jest.mock("uuid", () => ({
|
||||||
|
v4: jest.fn(() => "mocked-uuid"),
|
||||||
|
}));
|
||||||
|
|
||||||
import { Test, TestingModule } from "@nestjs/testing";
|
import { Test, TestingModule } from "@nestjs/testing";
|
||||||
|
|
||||||
jest.mock("@noble/post-quantum/ml-kem.js", () => ({
|
jest.mock("@noble/post-quantum/ml-kem.js", () => ({
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export interface RegisterPayload {
|
|||||||
export interface AuthStatus {
|
export interface AuthStatus {
|
||||||
isAuthenticated: boolean;
|
isAuthenticated: boolean;
|
||||||
user: null | {
|
user: null | {
|
||||||
id: string;
|
uuid: string;
|
||||||
username: string;
|
username: string;
|
||||||
displayName?: string;
|
displayName?: string;
|
||||||
avatarUrl?: string;
|
avatarUrl?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user