Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
import { beforeEach, describe, expect, it, vi } from "vite-plus/test";
const testState = vi.hoisted(() => ({
addToast: vi.fn(),
}));
vi.mock("./ui/toast", () => ({
toastManager: { add: testState.addToast },
}));
import { showDesktopUpdateDownloadedToast } from "./desktopUpdate.toast";
describe("showDesktopUpdateDownloadedToast", () => {
beforeEach(() => {
testState.addToast.mockReset();
});
it("announces the downloaded update without external links", () => {
showDesktopUpdateDownloadedToast();
expect(testState.addToast).toHaveBeenCalledTimes(1);
expect(testState.addToast).toHaveBeenCalledWith({
type: "success",
title: "Update downloaded",
description: "Restart the app from the update button to install it.",
});
});
});