update tests with enterprise-slug

This commit is contained in:
Stefan Petrushevski
2025-08-28 10:23:07 +02:00
parent 22e6bc6b49
commit 6cf7b5f22a
14 changed files with 118 additions and 72 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
import { test } from "./main.js";
// Verify `main` successfully obtains a token when only the `enterprise` input is set.
// Verify `main` successfully obtains a token when only the `enterprise-slug` input is set.
await test((mockPool) => {
process.env.INPUT_ENTERPRISE = "test-enterprise";
process.env["INPUT_ENTERPRISE-SLUG"] = "test-enterprise";
delete process.env.INPUT_OWNER;
delete process.env.INPUT_REPOSITORIES;
@@ -26,7 +26,7 @@ await test((mockPool) => {
id: mockInstallationId,
app_slug: mockAppSlug,
target_type: "Enterprise",
account: { login: "test-enterprise" }
account: { login: "test-enterprise", slug: "test-enterprise" }
}
],
{ headers: { "content-type": "application/json" } }