mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-03 23:54:19 -07:00
Add Cumulative Score "steps" section to methodology page (#489)
* Step progress list * Layout mostly done. Need to do intl() conversion but it's easier to understand the layout like this. Will do intl in a different PR * fix: `em` to `rem` * Add basic snapshot unit test
This commit is contained in:
parent
3d8dbb293c
commit
ec4344676d
5 changed files with 325 additions and 4 deletions
16
client/src/components/scoreStepsList.test.tsx
Normal file
16
client/src/components/scoreStepsList.test.tsx
Normal file
|
@ -0,0 +1,16 @@
|
|||
import * as React from 'react';
|
||||
import {render} from '@testing-library/react';
|
||||
import ScoreStepsList from './scoreStepsList';
|
||||
import {LocalizedComponent} from '../test/testHelpers';
|
||||
|
||||
describe('rendering of the component', () => {
|
||||
const {asFragment} = render(
|
||||
<LocalizedComponent>
|
||||
<ScoreStepsList/>
|
||||
</LocalizedComponent>,
|
||||
);
|
||||
|
||||
it('should match the snapshot of the MapIntroduction component', () => {
|
||||
expect(asFragment()).toMatchSnapshot();
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue