37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
// @vitest-environment jsdom
|
|
import { describe, expect, it } from "vitest";
|
|
import { getReleaseChannelUnavailableStatus } from "@/services/releaseChannelAvailability.js";
|
|
|
|
describe("internal release channel availability", () => {
|
|
it("does not block assigned internal channel payloads only because frontend entry assets are missing", () => {
|
|
const status = getReleaseChannelUnavailableStatus(
|
|
{
|
|
channel: {
|
|
slug: "internal",
|
|
name: "Intern",
|
|
description: "Internal staff and superuser validation channel.",
|
|
default_channel: false,
|
|
},
|
|
versions: {
|
|
frontend: null,
|
|
api: { version_label: "api-internal", commit_sha: "e40cf6b6ac31" },
|
|
bundle_id: null,
|
|
},
|
|
availability: {
|
|
configured: false,
|
|
explicit: true,
|
|
missing: ["frontend_entry"],
|
|
status: "unconfigured",
|
|
},
|
|
},
|
|
1_000,
|
|
0
|
|
);
|
|
|
|
expect(status.shouldBlock).toBe(false);
|
|
expect(status.channelSlug).toBe("internal");
|
|
expect(status.channelName).toBe("Intern");
|
|
expect(status.missing).toEqual([]);
|
|
});
|
|
});
|