chore: account for undefined arguments (#400)
This commit is contained in:
parent
05dc5d915b
commit
dd5b41f1d8
11 changed files with 3 additions and 19 deletions
|
|
@ -32,7 +32,6 @@ async function createTab(client: Client, title: string, body: string) {
|
|||
test('list initial tabs', async ({ client }) => {
|
||||
expect(await client.callTool({
|
||||
name: 'browser_tab_list',
|
||||
arguments: {},
|
||||
})).toHaveTextContent(`### Open tabs
|
||||
- 1: (current) [] (about:blank)`);
|
||||
});
|
||||
|
|
@ -41,7 +40,6 @@ test('list first tab', async ({ client }) => {
|
|||
await createTab(client, 'Tab one', 'Body one');
|
||||
expect(await client.callTool({
|
||||
name: 'browser_tab_list',
|
||||
arguments: {},
|
||||
})).toHaveTextContent(`### Open tabs
|
||||
- 1: [] (about:blank)
|
||||
- 2: (current) [Tab one] (data:text/html,<title>Tab one</title><body>Body one</body>)`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue