mirror of
https://github.com/actions/cache.git
synced 2025-07-26 02:26:07 +08:00
new tollkit and isghes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user