mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
20 lines
432 B
TypeScript
20 lines
432 B
TypeScript
|
// @ts-nocheck
|
||
|
import { createConfig } from './create-config';
|
||
|
|
||
|
test('should create default config', async () => {
|
||
|
const config = createConfig({
|
||
|
db: {
|
||
|
host: 'localhost',
|
||
|
port: 4242,
|
||
|
user: 'unleash',
|
||
|
password: 'password',
|
||
|
database: 'unleash_db',
|
||
|
},
|
||
|
server: {
|
||
|
port: 4242,
|
||
|
},
|
||
|
});
|
||
|
|
||
|
expect(config).toMatchSnapshot();
|
||
|
});
|