mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 10:20:15 +01:00
refactor: original changes
This commit is contained in:
parent
fa9177180f
commit
f9c0e9853f
83 changed files with 413 additions and 505 deletions
12
api/cache/banViolation.spec.js
vendored
12
api/cache/banViolation.spec.js
vendored
|
|
@ -1,17 +1,5 @@
|
|||
const banViolation = require('./banViolation');
|
||||
|
||||
jest.mock('@librechat/data-schemas', () => {
|
||||
const sessionModelMock = {
|
||||
deleteAllUserSessions: jest.fn(),
|
||||
};
|
||||
|
||||
return {
|
||||
registerModels: jest.fn().mockReturnValue({
|
||||
Session: sessionModelMock,
|
||||
}),
|
||||
};
|
||||
});
|
||||
|
||||
const mockModels = {
|
||||
Session: {
|
||||
deleteAllUserSessions: jest.fn(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue