mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-15 15:41:05 +00:00
Feat: admin audit (#5068)
* add admin audit (#5041) * Test audit (#5058) * feat: operation index * fix: delete update vector * perf: Clear invalid data * perf: index * perf: cleare invalid data * index * perf: audit event * fix: schema enum * add audit.svg (#5060) Co-authored-by: dreamer6680 <146868355@qq.com> * update package * perf: audit * perf: code move * eslint * doc --------- Co-authored-by: gggaaallleee <91131304+gggaaallleee@users.noreply.github.com> Co-authored-by: dreamer6680 <1468683855@qq.com> Co-authored-by: dreamer6680 <146868355@qq.com>
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { vi } from 'vitest';
|
||||
import './request';
|
||||
|
||||
vi.mock(import('@fastgpt/service/support/operationLog/addOperationLog'), () => {
|
||||
vi.mock(import('@fastgpt/service/support/audit/util'), async (importOriginal) => {
|
||||
const actual = await importOriginal();
|
||||
return {
|
||||
addOperationLog: vi.fn()
|
||||
...actual,
|
||||
addAuditLog: vi.fn()
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user