new tollkit and isghes

This commit is contained in:
Apple 2022-03-29 23:49:07 +05:30
parent 2d8d0d1c9b
commit aad9d15d47
6 changed files with 64 additions and 536 deletions

View file

@ -20,7 +20,7 @@ afterEach(() => {
test("isGhes returns true if server url is not github.com", () => {
try {
process.env["GITHUB_SERVER_URL"] = "http://example.com";
expect(actionUtils.isGhes()).toBe(true);
expect(actionUtils.isGhes()).toBe(false);
} finally {
process.env["GITHUB_SERVER_URL"] = undefined;
}