mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
🧪 ci: Update Test Files & fix ESLint issues
This commit is contained in:
parent
75324e1c7e
commit
74e029e78f
5 changed files with 47 additions and 75 deletions
|
|
@ -61,11 +61,8 @@ describe('File Routes - Delete with Agent Access', () => {
|
|||
let Agent;
|
||||
let AclEntry;
|
||||
let User;
|
||||
let AccessRole;
|
||||
let methods;
|
||||
let modelsToCleanup = [];
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
let agentId;
|
||||
|
||||
beforeAll(async () => {
|
||||
mongoServer = await MongoMemoryServer.create();
|
||||
|
|
@ -90,7 +87,6 @@ describe('File Routes - Delete with Agent Access', () => {
|
|||
Agent = models.Agent;
|
||||
AclEntry = models.AclEntry;
|
||||
User = models.User;
|
||||
AccessRole = models.AccessRole;
|
||||
|
||||
// Seed default roles using our methods
|
||||
await methods.seedDefaultRoles();
|
||||
|
|
@ -139,7 +135,6 @@ describe('File Routes - Delete with Agent Access', () => {
|
|||
// Create test data
|
||||
authorId = new mongoose.Types.ObjectId();
|
||||
otherUserId = new mongoose.Types.ObjectId();
|
||||
agentId = uuidv4();
|
||||
fileId = uuidv4();
|
||||
|
||||
// Create users in database
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue