



























@@ -372,10 +372,19 @@ describe("google-meet CLI", () => {
372372ended: true,
373373tokenSource: "cached-access-token",
374374});
375-expect(fetchMock).toHaveBeenCalledWith(
376-"https://meet.googleapis.com/v2/spaces/space-resource-123:endActiveConference",
377-expect.objectContaining({ method: "POST", body: "{}" }),
375+const endCall = fetchMock.mock.calls.find(
376+([input]) =>
377+ input === "https://meet.googleapis.com/v2/spaces/space-resource-123:endActiveConference",
378378);
379+expect(endCall?.[1]).toEqual({
380+method: "POST",
381+body: "{}",
382+headers: {
383+Accept: "application/json",
384+Authorization: "Bearer token",
385+"Content-Type": "application/json",
386+},
387+});
379388} finally {
380389stdout.restore();
381390}
@@ -603,14 +612,14 @@ describe("google-meet CLI", () => {
603612attendanceRows: 1,
604613warnings: 0,
605614},
606-files: expect.arrayContaining([
615+files: [
607616"summary.md",
608617"attendance.csv",
609618"transcript.md",
610619"artifacts.json",
611620"attendance.json",
612621"manifest.json",
613-]),
622+],
614623});
615624expect(JSON.parse(readFileSync(path.join(tempDir, "artifacts.json"), "utf8"))).toMatchObject({
616625conferenceRecords: [{ name: "conferenceRecords/rec-1" }],
@@ -856,7 +865,7 @@ describe("google-meet CLI", () => {
856865857866expect(callGatewayFromCli).toHaveBeenCalledWith(
858867"googlemeet.testSpeech",
859-{ json: true, timeout: expect.any(String) },
868+{ json: true, timeout: "60000" },
860869{
861870url: "https://meet.google.com/abc-defg-hij",
862871transport: "chrome",
@@ -961,7 +970,14 @@ describe("google-meet CLI", () => {
961970transcriptEntries: 1,
962971warnings: 0,
963972},
964-files: expect.arrayContaining(["summary.md", "manifest.json"]),
973+files: [
974+"summary.md",
975+"attendance.csv",
976+"transcript.md",
977+"artifacts.json",
978+"attendance.json",
979+"manifest.json",
980+],
965981},
966982tokenSource: "cached-access-token",
967983});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。