mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-07 17:23:14 +08:00
formatting fixes
This commit is contained in:
@@ -1,25 +1,22 @@
|
||||
import * as config from '../src/internal/shared/config'
|
||||
|
||||
|
||||
beforeEach(() => {
|
||||
jest.resetModules()
|
||||
});
|
||||
|
||||
jest.resetModules()
|
||||
})
|
||||
|
||||
describe('isGhes', () => {
|
||||
it('should return false when the request domain is github.com', () => {
|
||||
process.env.GITHUB_SERVER_URL = 'https://github.com'
|
||||
expect(config.isGhes()).toBe(false)
|
||||
})
|
||||
it('should return false when the request domain is github.com', () => {
|
||||
process.env.GITHUB_SERVER_URL = 'https://github.com'
|
||||
expect(config.isGhes()).toBe(false)
|
||||
})
|
||||
|
||||
it('should return false when the request has ACTIONS_RESULTS_URL set', () => {
|
||||
process.env.ACTIONS_RESULTS_URL = 'my.results.url'
|
||||
expect(config.isGhes()).toBe(false)
|
||||
})
|
||||
it('should return false when the request has ACTIONS_RESULTS_URL set', () => {
|
||||
process.env.ACTIONS_RESULTS_URL = 'my.results.url'
|
||||
expect(config.isGhes()).toBe(false)
|
||||
})
|
||||
|
||||
|
||||
it('should return false when the request domain is specific to an enterprise', () => {
|
||||
process.env.GITHUB_SERVER_URL = 'https://my-enterprise.github.com'
|
||||
expect(config.isGhes()).toBe(true)
|
||||
})
|
||||
})
|
||||
it('should return false when the request domain is specific to an enterprise', () => {
|
||||
process.env.GITHUB_SERVER_URL = 'https://my-enterprise.github.com'
|
||||
expect(config.isGhes()).toBe(true)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user