mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
Prettify test file
This commit is contained in:
parent
504181d809
commit
3a31f2b821
1 changed files with 9 additions and 9 deletions
|
@ -1,15 +1,15 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { render } from '@testing-library/react';
|
import {render} from '@testing-library/react';
|
||||||
import {LocalizedComponent} from '../../test/testHelpers';
|
import {LocalizedComponent} from '../../test/testHelpers';
|
||||||
import TractDemographics from './TractDemographics';
|
import TractDemographics from './TractDemographics';
|
||||||
|
|
||||||
describe('rendering of TractDemographics Component', () => {
|
describe('rendering of TractDemographics Component', () => {
|
||||||
const {asFragment} = render(
|
const {asFragment} = render(
|
||||||
<LocalizedComponent>
|
<LocalizedComponent>
|
||||||
<TractDemographics />
|
<TractDemographics />
|
||||||
</LocalizedComponent>,
|
</LocalizedComponent>,
|
||||||
);
|
);
|
||||||
it('checks if component renders', () => {
|
it('checks if component renders', () => {
|
||||||
expect(asFragment()).toMatchSnapshot();
|
expect(asFragment()).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue