Fix prettier formatting in util.test.ts

This commit is contained in:
copilot-swe-agent[bot] 2026-06-04 13:27:27 +00:00 committed by GitHub
parent 88aa1d8008
commit 00de92dfa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,10 +108,7 @@ describe('getNextPageUrlFromLinkHeader', () => {
'https://api.adoptium.net/v3/versions?page=3'
],
[{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]
])('returns %s -> %s', (headers, expected) => {
expect(getNextPageUrlFromLinkHeader(headers)).toBe(expected);
@ -147,9 +144,9 @@ describe('validatePaginationUrl', () => {
});
it('returns false for invalid URL', () => {
expect(
validatePaginationUrl('not-a-url', 'https://api.adoptium.net')
).toBe(false);
expect(validatePaginationUrl('not-a-url', 'https://api.adoptium.net')).toBe(
false
);
});
it('accepts URL with explicit default port', () => {