Function
makeConfig
(overrides: Partial<PostgresConnectionConfig> = {})
Source from the content-addressed store, hash-verified
| 18 | import { createPostgresConnection } from '@/app/api/tools/postgresql/utils' |
| 19 | |
| 20 | function makeConfig(overrides: Partial<PostgresConnectionConfig> = {}): PostgresConnectionConfig { |
| 21 | return { |
| 22 | host: 'db.example.com', |
| 23 | port: 5432, |
| 24 | database: 'app', |
| 25 | username: 'app', |
| 26 | password: 'secret', |
| 27 | ssl: 'required', |
| 28 | ...overrides, |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | describe('createPostgresConnection DNS pinning', () => { |
| 33 | beforeEach(() => { |
Tested by
no test coverage detected