mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-20 16:21:39 -07:00
* Add script to un-nest the translated es.json file * Update unit tests * Update i18n IDs to conformity * Update READMEs * Make ordinal values in sidepanel i18n compliant * remove redudant IDs in en.json * Add oridinal i18n to IndicatorValue sub-text * Update plurals in sidepanel - Disadvantaged in 1 category - Disadvantaged in 5 categories - At or above 1 threshold - At or above 10 thresholds * Add en.json link to GHA * Enable FormatJS linter rules to catch i18n issues * Testing if commit hash will render in PR message * Testing if commit hash will render in PR message * Enable allow repeats * Try to add run command * remove attempts to link to en.json * Define COMMIT HASH env variable * Move commit hash to deploy job
28 lines
765 B
TypeScript
28 lines
765 B
TypeScript
import * as React from 'react';
|
|
import {render} from '@testing-library/react';
|
|
import {LocalizedComponent} from '../../test/testHelpers';
|
|
import Language from './Language';
|
|
|
|
describe('rendering of the Language component on mobile', () => {
|
|
const {asFragment} = render(
|
|
<LocalizedComponent>
|
|
<Language isDesktop={false}/>
|
|
</LocalizedComponent>,
|
|
);
|
|
|
|
it('checks if component renders', () => {
|
|
expect(asFragment()).toMatchSnapshot();
|
|
});
|
|
});
|
|
|
|
describe('rendering of the Language component on desktop', () => {
|
|
const {asFragment} = render(
|
|
<LocalizedComponent>
|
|
<Language isDesktop={true}/>
|
|
</LocalizedComponent>,
|
|
);
|
|
|
|
it('checks if component renders', () => {
|
|
expect(asFragment()).toMatchSnapshot();
|
|
});
|
|
});
|