Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

468 B
Raw Blame
import { describe, expect, test } from "vitest";

import { createTrpcQueryKey } from "./trpc-query-key";

describe("createTrpcQueryKey", () => {
  test("matches the tRPC TanStack query key shape", () => {
    expect(createTrpcQueryKey("widget.downloads.getJobsAndStatuses", { integrationIds: ["one"], limit: 50 })).toEqual([
      ["widget", "downloads", "getJobsAndStatuses"],
      { input: { integrationIds: ["one"], limit: 50 }, type: "query" },
    ]);
  });
});