mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-21 06:11:45 +00:00
chore: apply prettier on the entire project
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import { checkSsrf, SsrfBlockedError, safeFetch, createPinnedDispatcher } from '../../../src/utils/ssrfGuard';
|
||||
|
||||
import dns from 'dns/promises';
|
||||
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
||||
|
||||
// Capture Agent constructor options so we can test the lookup callback
|
||||
@@ -20,9 +23,6 @@ vi.mock('undici', () => ({
|
||||
},
|
||||
}));
|
||||
|
||||
import dns from 'dns/promises';
|
||||
import { checkSsrf, SsrfBlockedError, safeFetch, createPinnedDispatcher } from '../../../src/utils/ssrfGuard';
|
||||
|
||||
const mockLookup = vi.mocked(dns.lookup);
|
||||
|
||||
function mockIp(ip: string) {
|
||||
@@ -166,7 +166,6 @@ describe('checkSsrf', () => {
|
||||
expect(result.error).toBe('Could not resolve hostname');
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('SsrfBlockedError', () => {
|
||||
|
||||
Reference in New Issue
Block a user