mirror of
https://github.com/actions/setup-java.git
synced 2026-06-17 08:54:24 +00:00
Fix prettier formatting in util.test.ts
This commit is contained in:
parent
88aa1d8008
commit
00de92dfa2
@ -108,10 +108,7 @@ describe('getNextPageUrlFromLinkHeader', () => {
|
|||||||
'https://api.adoptium.net/v3/versions?page=3'
|
'https://api.adoptium.net/v3/versions?page=3'
|
||||||
],
|
],
|
||||||
[{link: '<https://example.com/last?page=5>; rel="last"'}, null],
|
[{link: '<https://example.com/last?page=5>; rel="last"'}, null],
|
||||||
[
|
[{link: '<https://example.com/page?p=2>; rel="nextsomething"'}, null],
|
||||||
{link: '<https://example.com/page?p=2>; rel="nextsomething"'},
|
|
||||||
null
|
|
||||||
],
|
|
||||||
[undefined, null]
|
[undefined, null]
|
||||||
])('returns %s -> %s', (headers, expected) => {
|
])('returns %s -> %s', (headers, expected) => {
|
||||||
expect(getNextPageUrlFromLinkHeader(headers)).toBe(expected);
|
expect(getNextPageUrlFromLinkHeader(headers)).toBe(expected);
|
||||||
@ -147,9 +144,9 @@ describe('validatePaginationUrl', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('returns false for invalid URL', () => {
|
it('returns false for invalid URL', () => {
|
||||||
expect(
|
expect(validatePaginationUrl('not-a-url', 'https://api.adoptium.net')).toBe(
|
||||||
validatePaginationUrl('not-a-url', 'https://api.adoptium.net')
|
false
|
||||||
).toBe(false);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('accepts URL with explicit default port', () => {
|
it('accepts URL with explicit default port', () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user