Skip to content

Commit 08bba3f

Browse files
Copilothuntie
andcommitted
style: replace it() with test() in openURLMiddleware tests
Co-authored-by: huntie <2547783+huntie@users.noreply.github.com>
1 parent f8a1ff0 commit 08bba3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cli-server-api/src/__tests__/openURLMiddleware.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('openURLMiddleware', () => {
2828
jest.restoreAllMocks();
2929
});
3030

31-
it('should return 400 for non-string URL', async () => {
31+
test('should return 400 for non-string URL', async () => {
3232
req.body = {url: 123};
3333

3434
await openURLMiddleware(req, res, next);
@@ -38,7 +38,7 @@ describe('openURLMiddleware', () => {
3838
expect(res.end).toHaveBeenCalledWith('URL must be a string');
3939
});
4040

41-
it('should reject malicious URL with invalid hostname', async () => {
41+
test('should reject malicious URL with invalid hostname', async () => {
4242
const maliciousUrl = 'https://www.$(calc.exe).com/foo';
4343
req.body = {url: maliciousUrl};
4444

0 commit comments

Comments
 (0)