๐Ÿ“ฆ rust-lang / crates-io-auth-action

๐Ÿ“„ utils.test.ts ยท 9 lines
1
2
3
4
5
6
7
8
9import { expect, test } from "vitest";
import { getTokensEndpoint } from "./utils.js";

test("returns the correct endpoint URL", () => {
    expect(getTokensEndpoint("https://example.com")).toBe(
        "https://example.com/api/v1/trusted_publishing/tokens",
    );
});