Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

360 B
Raw Blame
// @vitest-environment node

import { getSlackStatus } from "./useSlackIntegration";

describe("getSlackStatus", () => {
  it.each([
    [undefined, "inactive"],
    [{ isConnected: false }, "inactive"],
    [{ isConnected: true }, "active"],
  ])("maps %o to %s", (integration, expected) => {
    expect(getSlackStatus(integration)).toBe(expected);
  });
});