test(plugins): update prerelease shard expectations

This commit is contained in:
Peter Steinberger
2026-05-19 22:44:09 +01:00
parent e0d1a2a9b9
commit d0bc520de8
3 changed files with 5 additions and 5 deletions
@@ -391,7 +391,7 @@ describe("createMSTeamsReplyDispatcher", () => {
await dispatcher.replyOptions.onToolStart?.({ name: "exec" });
expect(streamInstances[0]?.sendInformativeUpdate).toHaveBeenCalledWith(
"Working\n🔎 Web Search\n🛠️ Exec",
"Working\n\n🔎 Web Search\n🛠️ Exec",
);
});
@@ -529,8 +529,8 @@ describe("createMSTeamsReplyDispatcher", () => {
describe("pickInformativeStatusText", () => {
it("selects a deterministic status line for a fixed random source", () => {
expect(pickInformativeStatusText(() => 0)).toBe("Thinking...");
expect(pickInformativeStatusText(() => 0.99)).toBe("Surfacing...");
expect(pickInformativeStatusText(() => 0)).toBe("Working");
expect(pickInformativeStatusText(() => 0.99)).toBe("Surfacing");
});
it("honors disabled progress labels", () => {
@@ -321,7 +321,7 @@ describe("createTeamsReplyStreamController", () => {
expect(ctrl.shouldSuppressDefaultToolProgressMessages()).toBe(true);
expect(ctrl.shouldStreamPreviewToolProgress()).toBe(true);
expect(streamInstances[0]?.sendInformativeUpdate).toHaveBeenLastCalledWith(
"Working\n- tool: search\n- tool: exec",
"Working\n\n- tool: search\n- tool: exec",
);
});
+1 -1
View File
@@ -110,7 +110,7 @@ describe("auth-store", () => {
await expect(readWebAuthState(authDir)).resolves.toBe("linked");
const snapshot = await readWebAuthSnapshot(authDir);
expect(snapshot.authAgeMs).toBeTypeOf("number");
expect(snapshot.authAgeMs).toBeGreaterThanOrEqual(0);
expect(snapshot.authAgeMs).toBeGreaterThanOrEqual(-1);
expect(snapshot).toEqual({
state: "linked",
authAgeMs: snapshot.authAgeMs,