1
0
Fork 0
pull/1028/head
Shubham Tiwari 2022-03-25 00:25:03 +05:30
parent ec8e458bdc
commit 6664f1646a
1 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,7 @@
import * as cache from '../src/cache'
test('isFeatureAvailable returns true if server url is set', () => {
try {
try {
process.env['ACTIONS_CACHE_URL'] = 'http://cache.com'
expect(cache.isFeatureAvailable()).toBe(true)
} finally {
@ -9,7 +9,6 @@ test('isFeatureAvailable returns true if server url is set', () => {
}
})
test('isFeatureAvailable returns false if server url is not set', () => {
expect(cache.isFeatureAvailable()).toBe(false)
})
test('isFeatureAvailable returns false if server url is not set', () => {
expect(cache.isFeatureAvailable()).toBe(false)
})