mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-20 05:56:53 +00:00
11 lines
451 B
TypeScript
11 lines
451 B
TypeScript
import { DEFAULT_LANGUAGE } from '../../../src/config';
|
|
import { ConfigController } from '../../../src/nest/config/config.controller';
|
|
|
|
import { describe, it, expect } from 'vitest';
|
|
|
|
describe('ConfigController (parity with the legacy /api/config route)', () => {
|
|
it('returns the server default language, like the legacy public route', () => {
|
|
expect(new ConfigController().getConfig()).toEqual({ defaultLanguage: DEFAULT_LANGUAGE });
|
|
});
|
|
});
|