Skip to content

Commit 8419e13

Browse files
committed
lint
1 parent 47e93f2 commit 8419e13

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

tests/integration/suite.ts

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,19 @@ export function createIntegrationTestsSuite(
101101
const client = await createClientFn();
102102
const tools = await client.listTools();
103103
const names = getToolNames(tools);
104-
104+
105105
// Should be equivalent to tools=actors,docs,apify/rag-web-browser
106106
const expectedActorsTools = ['fetch-actor-details', 'search-actors', 'call-actor'];
107107
const expectedDocsTools = ['search-apify-docs', 'fetch-apify-docs'];
108108
const expectedActors = ['apify-slash-rag-web-browser'];
109-
109+
110110
const expectedTotal = expectedActorsTools.concat(expectedDocsTools, expectedActors);
111111
expect(names).toHaveLength(expectedTotal.length);
112-
113-
expectedActorsTools.forEach(tool => expect(names).toContain(tool));
114-
expectedDocsTools.forEach(tool => expect(names).toContain(tool));
115-
expectedActors.forEach(actor => expect(names).toContain(actor));
116-
112+
113+
expectedActorsTools.forEach((tool) => expect(names).toContain(tool));
114+
expectedDocsTools.forEach((tool) => expect(names).toContain(tool));
115+
expectedActors.forEach((actor) => expect(names).toContain(actor));
116+
117117
await client.close();
118118
});
119119

@@ -185,18 +185,18 @@ export function createIntegrationTestsSuite(
185185
});
186186

187187
it('should treat selectors with slashes as Actor names', async () => {
188-
const client = await createClientFn({
189-
tools: ['docs', 'apify/python-example']
188+
const client = await createClientFn({
189+
tools: ['docs', 'apify/python-example'],
190190
});
191191
const names = getToolNames(await client.listTools());
192-
192+
193193
// Should include docs category
194194
expect(names).toContain('search-apify-docs');
195195
expect(names).toContain('fetch-apify-docs');
196-
196+
197197
// Should include actor (if it exists/is valid)
198198
expect(names).toContain('apify-slash-python-example');
199-
199+
200200
await client.close();
201201
});
202202

@@ -214,21 +214,21 @@ export function createIntegrationTestsSuite(
214214
});
215215

216216
it('should handle mixed categories and specific tools in tools param', async () => {
217-
const client = await createClientFn({
218-
tools: ['docs', 'fetch-actor-details', 'add-actor']
217+
const client = await createClientFn({
218+
tools: ['docs', 'fetch-actor-details', 'add-actor'],
219219
});
220220
const names = getToolNames(await client.listTools());
221-
221+
222222
// Should include: docs category + specific tools
223223
expect(names).toContain('search-apify-docs'); // from docs category
224-
expect(names).toContain('fetch-apify-docs'); // from docs category
224+
expect(names).toContain('fetch-apify-docs'); // from docs category
225225
expect(names).toContain('fetch-actor-details'); // specific tool
226226
expect(names).toContain('add-actor'); // specific tool
227-
227+
228228
// Should NOT include other actors category tools
229229
expect(names).not.toContain('search-actors');
230230
expect(names).not.toContain('call-actor');
231-
231+
232232
await client.close();
233233
});
234234

@@ -326,33 +326,33 @@ export function createIntegrationTestsSuite(
326326

327327
it('should enforce two-step process for call-actor tool', async () => {
328328
const client = await createClientFn({ tools: ['actors'] });
329-
329+
330330
// Step 1: Get info (should work)
331331
const infoResult = await client.callTool({
332332
name: HelperTools.ACTOR_CALL,
333333
arguments: {
334334
actor: ACTOR_PYTHON_EXAMPLE,
335-
step: 'info'
336-
}
335+
step: 'info',
336+
},
337337
});
338-
338+
339339
expect(infoResult.content).toBeDefined();
340340
const content = infoResult.content as { text: string }[];
341-
expect(content.some(item => item.text.includes('Actor card'))).toBe(true);
342-
expect(content.some(item => item.text.includes('Input Schema'))).toBe(true);
343-
341+
expect(content.some((item) => item.text.includes('Actor card'))).toBe(true);
342+
expect(content.some((item) => item.text.includes('Input Schema'))).toBe(true);
343+
344344
// Step 2: Call with proper input (should work)
345345
const callResult = await client.callTool({
346346
name: HelperTools.ACTOR_CALL,
347347
arguments: {
348348
actor: ACTOR_PYTHON_EXAMPLE,
349349
step: 'call',
350-
input: { first_number: 1, second_number: 2 }
351-
}
350+
input: { first_number: 1, second_number: 2 },
351+
},
352352
});
353-
353+
354354
expect(callResult.content).toBeDefined();
355-
355+
356356
await client.close();
357357
});
358358

0 commit comments

Comments
 (0)