Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
core
/
internationalization
/
File Content:
constants.test.ts
import { uniqBy } from 'lodash'; import { LANGUAGES, VALID_LANGUAGES } from './constants'; describe('internationalization constants', () => { it('should not have duplicate languages codes', () => { const uniqLocales = uniqBy(LANGUAGES, (v) => v.code); expect(LANGUAGES).toHaveLength(uniqLocales.length); }); it('should have a correct list of valid locale codes', () => { expect(VALID_LANGUAGES).toEqual(LANGUAGES.map((v) => v.code)); }); });
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
constants.test.ts
465 bytes
0644
constants.ts
1576 bytes
0644
index.test.tsx
910 bytes
0644
index.tsx
2936 bytes
0644
N4ST4R_ID | Naxtarrr