review comments

This commit is contained in:
Shubham Tiwari
2022-03-25 00:02:17 +05:30
parent 71b35793b1
commit 2487627b27
7 changed files with 20 additions and 22 deletions

View File

@@ -32,16 +32,3 @@ test('assertDefined throws if undefined', () => {
test('assertDefined returns value', () => {
expect(cacheUtils.assertDefined('test', 5)).toBe(5)
})
test('isFeatureAvailable returns true if server url is set', () => {
try {
process.env['ACTIONS_CACHE_URL'] = 'http://cache.com'
expect(cacheUtils.isFeatureAvailable()).toBe(true)
} finally {
delete process.env['ACTIONS_CACHE_URL']
}
})
test('isFeatureAvailable returns false if server url is not set', () => {
expect(cacheUtils.isFeatureAvailable()).toBe(false)
})