mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 05:26:47 +00:00
724c88c201
A mechanical prettier --write over server/src, server/tests, server/scripts and shared/src with the workspaces' .prettierrc; nothing but layout and import order changes, and every file keeps the same set of imports. shared is formatted throughout and its format baseline is empty. The server baseline keeps the 35 files that Prettier would grow past their lint:size limit (they need a split first, which is not a formatting change), and the generated entity files stay as their generator writes them.
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 });
|
|
});
|
|
});
|