mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 13:09:27 +08:00
lint
This commit is contained in:
parent
4e40c6dfc0
commit
a4539ea36c
7
packages/cache/__tests__/cacheUtils.test.ts
vendored
7
packages/cache/__tests__/cacheUtils.test.ts
vendored
@ -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…
x
Reference in New Issue
Block a user