Minor updates and lint and format fixes (#8327)

This commit is contained in:
Matt Godbolt
2025-12-09 22:16:59 -06:00
committed by GitHub
parent 3ff63867de
commit d2cc7118aa
7 changed files with 2234 additions and 1685 deletions

View File

@@ -46,12 +46,19 @@ describe('CLI Module', () => {
expect(parsePortNumberForOptions('65535')).toEqual(65535);
});
it.each(['-1', '65536', 'abc', '123abc', '', '123.45', '12.34.56', '12-34-56', '12,34,56'])(
'should throw on bad numbers: "%s"',
notNumber => {
expect(() => parsePortNumberForOptions(notNumber)).toThrow();
},
);
it.each([
'-1',
'65536',
'abc',
'123abc',
'',
'123.45',
'12.34.56',
'12-34-56',
'12,34,56',
])('should throw on bad numbers: "%s"', notNumber => {
expect(() => parsePortNumberForOptions(notNumber)).toThrow();
});
});
describe('getGitReleaseName', () => {