mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
Minor updates and lint and format fixes (#8327)
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user