Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

466 B
Raw Blame
// SPDX-License-Identifier: FSL-1.1-MIT
// Copyright (c) 2026 Cua AI, Inc.

import { describe, expect, it, vi } from "vitest";

const setUiLocale = vi.fn();
vi.mock("../native/telemetry", () => ({ telemetryBridge: () => ({ setUiLocale }) }));

import { reportUiLocale } from "./reportLocale";

describe("reportUiLocale", () => {
  it("sends the locale in use to telemetry", () => {
    reportUiLocale();
    expect(setUiLocale).toHaveBeenCalledWith("en");
  });
});