added test case

This commit is contained in:
Shubham Tiwari
2022-03-24 11:26:30 +05:30
parent a1a0cc7ebf
commit ba1126827e
3 changed files with 23 additions and 5 deletions
+1 -5
View File
@@ -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
View File
@@ -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
}