mirror of
https://github.com/Tencent/BrowserSkill.git
synced 2026-09-10 13:01:23 +08:00
test(extension): return home tab ids from mocks
This commit is contained in:
@@ -287,7 +287,7 @@ describe("ToolDispatcher", () => {
|
|||||||
agentWindow: {
|
agentWindow: {
|
||||||
create: vi.fn(async () => 4242),
|
create: vi.fn(async () => 4242),
|
||||||
remove: vi.fn(async () => {}),
|
remove: vi.fn(async () => {}),
|
||||||
ensureActiveTab: vi.fn(async () => {}),
|
ensureActiveTab: vi.fn(async () => 1),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const ctx = await sessions.start("aa11");
|
const ctx = await sessions.start("aa11");
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ function sessions() {
|
|||||||
agentWindow: {
|
agentWindow: {
|
||||||
create: vi.fn(async () => 100),
|
create: vi.fn(async () => 100),
|
||||||
remove: vi.fn(async () => {}),
|
remove: vi.fn(async () => {}),
|
||||||
ensureActiveTab: vi.fn(async () => {}),
|
ensureActiveTab: vi.fn(async () => 1),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user