Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

486 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";
import { trelloAuthorizeUrl } from "./authorize.js";

describe("trelloAuthorizeUrl", () => {
  it("asks for a read-only, one day token for Kaneo", () => {
    expect(trelloAuthorizeUrl(" abc123 ")).toBe(
      "https://trello.com/1/authorize?expiration=1day&scope=read&response_type=token&name=Kaneo&key=abc123",
    );
  });

  it("encodes the key", () => {
    expect(trelloAuthorizeUrl("a&b")).toContain("key=a%26b");
  });
});