fix: merge mock success data

This commit is contained in:
yujunhui 2024-12-26 17:56:30 +08:00
parent c911aad228
commit 2f39bdddd9

View File

@ -17,7 +17,7 @@ export function withAuth<T, U extends any[]>(
logger.warn("You're bypassing authentication");
warningCount++;
}
return { success: true } as T;
return { success: true, ...(mockSuccess || {}) } as T;
} else {
return await originalFunction(...args);
}