Files
TREK/server/tests/unit/nest/config.controller.test.ts
T
2026-10-06 21:50:59 +02:00

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 });
});
});