mirror of
https://github.com/actions/toolkit.git
synced 2026-08-11 00:00:28 +02:00
added test case
This commit is contained in:
Vendored
+1
-5
@@ -50,11 +50,7 @@ function checkKey(key: string): void {
|
||||
*/
|
||||
|
||||
export function isFeatureAvailable(): boolean {
|
||||
if (process.env['ACTIONS_CACHE_URL']) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
return utils.isFeatureAvailable();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+8
@@ -123,3 +123,11 @@ export function assertDefined<T>(name: string, value?: T): T {
|
||||
|
||||
return value
|
||||
}
|
||||
|
||||
export function isFeatureAvailable(): boolean {
|
||||
if (process.env["ACTIONS_CACHE_URL"]) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user