mirror of https://github.com/actions/toolkit
lint
parent
4e40c6dfc0
commit
a4539ea36c
|
@ -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)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue