diff --git a/packages/cache/__tests__/cache.test.ts b/packages/cache/__tests__/cache.test.ts index 259c223d..f6b570b0 100644 --- a/packages/cache/__tests__/cache.test.ts +++ b/packages/cache/__tests__/cache.test.ts @@ -4,10 +4,10 @@ test('isFeatureAvailable returns true if server url is set', () => { try { process.env['ACTIONS_CACHE_URL'] = 'http://cache.com' expect(cache.isFeatureAvailable()).toBe(true) - } finally { + } finally { delete process.env['ACTIONS_CACHE_URL'] - } - }) + } +}) test('isFeatureAvailable returns false if server url is not set', () => { expect(cache.isFeatureAvailable()).toBe(false)