mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-01 08:43:21 +08:00
Lint errors
This commit is contained in:
16
packages/cache/__tests__/cacheUtils.test.ts
vendored
16
packages/cache/__tests__/cacheUtils.test.ts
vendored
@@ -33,16 +33,16 @@ test('assertDefined returns value', () => {
|
||||
expect(cacheUtils.assertDefined('test', 5)).toBe(5)
|
||||
})
|
||||
|
||||
test("isFeatureAvailable returns true if server url is set", () => {
|
||||
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);
|
||||
});
|
||||
test('isFeatureAvailable returns false if server url is not set', () => {
|
||||
expect(cacheUtils.isFeatureAvailable()).toBe(false)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user