File size: 450 Bytes
1f5ea39
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import { describe, it, expect } from 'vitest';
import { ConfigController } from '../../../src/nest/config/config.controller';
import { DEFAULT_LANGUAGE } from '../../../src/config';

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