mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
test: avoid array at in handler spec
This commit is contained in:
parent
9ff831e514
commit
874f68ff02
1 changed files with 1 additions and 1 deletions
|
|
@ -1240,7 +1240,7 @@ describe('createToolExecuteHandler', () => {
|
|||
const lookupCalls = getSkillByName.mock.calls as unknown as Array<
|
||||
[string, import('mongoose').Types.ObjectId[], Record<string, unknown>]
|
||||
>;
|
||||
const lastLookup = lookupCalls.at(-1);
|
||||
const lastLookup = lookupCalls[lookupCalls.length - 1];
|
||||
const lookupIds = lastLookup?.[1];
|
||||
expect(lastLookup?.[0]).toBe('round-skill');
|
||||
expect(lookupIds?.[0].toString()).toBe(SKILL_ID.toString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue