chore: account for undefined arguments (#400)

This commit is contained in:
Pavel Feldman 2025-05-12 09:35:33 -07:00 committed by GitHub
parent 05dc5d915b
commit dd5b41f1d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 3 additions and 19 deletions

View file

@ -26,7 +26,6 @@ test('browser_take_screenshot (viewport)', async ({ client, server }) => {
expect(await client.callTool({
name: 'browser_take_screenshot',
arguments: {},
})).toEqual({
content: [
{
@ -81,7 +80,6 @@ test('--output-dir should work', async ({ startClient, localOutputPath, server }
await client.callTool({
name: 'browser_take_screenshot',
arguments: {},
});
expect(fs.existsSync(outputDir)).toBeTruthy();
@ -180,12 +178,10 @@ test('browser_take_screenshot (noImageResponses)', async ({ startClient, server
await client.callTool({
name: 'browser_take_screenshot',
arguments: {},
});
expect(await client.callTool({
name: 'browser_take_screenshot',
arguments: {},
})).toEqual({
content: [
{
@ -206,12 +202,10 @@ test('browser_take_screenshot (cursor)', async ({ startClient, server }) => {
await client.callTool({
name: 'browser_take_screenshot',
arguments: {},
});
expect(await client.callTool({
name: 'browser_take_screenshot',
arguments: {},
})).toEqual({
content: [
{