mirror of
https://github.com/actions/checkout.git
synced 2025-04-19 17:16:46 +00:00
ran npm run format
This commit is contained in:
parent
2f42443dda
commit
7fcbcdce7d
2 changed files with 22 additions and 11 deletions
|
@ -14,10 +14,20 @@ describe('isGhes tests', () => {
|
|||
describe('getServerApiUrl tests', () => {
|
||||
it('basics', async () => {
|
||||
expect(urlHelper.getServerApiUrl()).toBe('https://api.github.com')
|
||||
expect(urlHelper.getServerApiUrl('https://github.com')).toBe('https://api.github.com')
|
||||
expect(urlHelper.getServerApiUrl('https://GitHub.com')).toBe('https://api.github.com')
|
||||
expect(urlHelper.getServerApiUrl('https://europe.ghe.com')).toBe('https://api.europe.ghe.com')
|
||||
expect(urlHelper.getServerApiUrl('https://australia.GHE.COM')).toBe('https://api.australia.ghe.com')
|
||||
expect(urlHelper.getServerApiUrl('https://src.onpremise.customer.com')).toBe('https://src.onpremise.customer.com/api/v3')
|
||||
expect(urlHelper.getServerApiUrl('https://github.com')).toBe(
|
||||
'https://api.github.com'
|
||||
)
|
||||
expect(urlHelper.getServerApiUrl('https://GitHub.com')).toBe(
|
||||
'https://api.github.com'
|
||||
)
|
||||
expect(urlHelper.getServerApiUrl('https://europe.ghe.com')).toBe(
|
||||
'https://api.europe.ghe.com'
|
||||
)
|
||||
expect(urlHelper.getServerApiUrl('https://australia.GHE.COM')).toBe(
|
||||
'https://api.australia.ghe.com'
|
||||
)
|
||||
expect(
|
||||
urlHelper.getServerApiUrl('https://src.onpremise.customer.com')
|
||||
).toBe('https://src.onpremise.customer.com/api/v3')
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue