mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-30 07:08:50 +01:00
refactor(index.test.js): change let to const for variables that are not reassigned
This commit is contained in:
parent
11775915d0
commit
f171628948
1 changed files with 6 additions and 7 deletions
|
|
@ -12,12 +12,11 @@ const GoogleSearchAPI = require('./GoogleSearch');
|
|||
|
||||
describe('Tool Handlers', () => {
|
||||
let fakeUser;
|
||||
let pluginKey = 'dall-e';
|
||||
let pluginKey2 = 'wolfram';
|
||||
let initialTools = [pluginKey, pluginKey2];
|
||||
let sampleTools = initialTools;
|
||||
let ToolClass = OpenAICreateImage;
|
||||
let mockCredential = 'mock-credential';
|
||||
const pluginKey = 'dall-e';
|
||||
const pluginKey2 = 'wolfram';
|
||||
const initialTools = [pluginKey, pluginKey2];
|
||||
const ToolClass = OpenAICreateImage;
|
||||
const mockCredential = 'mock-credential';
|
||||
const mainPlugin = availableTools.find((tool) => tool.pluginKey === pluginKey);
|
||||
const authConfigs = mainPlugin.authConfig;
|
||||
|
||||
|
|
@ -93,7 +92,7 @@ describe('Tool Handlers', () => {
|
|||
let loadTool1;
|
||||
let loadTool2;
|
||||
let loadTool3;
|
||||
sampleTools = [...sampleTools, 'calculator'];
|
||||
const sampleTools = [...initialTools, 'calculator'];
|
||||
let ToolClass2 = Calculator;
|
||||
let remainingTools = availableTools.filter(
|
||||
(tool) => sampleTools.indexOf(tool.pluginKey) === -1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue