1
0
Fork 0
pull/1028/head
Shubham Tiwari 2022-03-24 11:55:57 +05:30
parent 4e40c6dfc0
commit a4539ea36c
1 changed files with 3 additions and 4 deletions

View File

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