mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 21:19:08 +08:00
linting
This commit is contained in:
parent
6664f1646a
commit
2a53a08370
6
packages/cache/__tests__/cache.test.ts
vendored
6
packages/cache/__tests__/cache.test.ts
vendored
@ -4,10 +4,10 @@ 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(cache.isFeatureAvailable()).toBe(true)
|
expect(cache.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(cache.isFeatureAvailable()).toBe(false)
|
expect(cache.isFeatureAvailable()).toBe(false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user