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', () => {
|
test('isFeatureAvailable returns true if server url is set', () => {
|
||||||
try {
|
try {
|
||||||
process.env['ACTIONS_CACHE_URL'] = 'http://cache.com'
|
process.env['ACTIONS_CACHE_URL'] = 'http://cache.com'
|
||||||
expect(cacheUtils.isFeatureAvailable()).toBe(true)
|
expect(cacheUtils.isFeatureAvailable()).toBe(true)
|
||||||
} finally {
|
} finally {
|
||||||
delete process.env['ACTIONS_CACHE_URL']
|
delete process.env['ACTIONS_CACHE_URL']
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
test('isFeatureAvailable returns false if server url is not set', () => {
|
test('isFeatureAvailable returns false if server url is not set', () => {
|
||||||
expect(cacheUtils.isFeatureAvailable()).toBe(false)
|
expect(cacheUtils.isFeatureAvailable()).toBe(false)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue