mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-07 08:34:19 -07:00
* Display SurveyMonkey survey via FAB - add Floating Action Button lib: react-tiny-fab - enable Internal Page Survey with ?flags=ips - update snapshots * Add location to state - update snapshots * Fix build error - remove react-tiny-fab - remove location state - create custom FAB component - remove feature flag - update snapshots * Add SurveyFab snapshot test * Remove embedded survey page - add intl * Remove conditional render logic on SurveyFab * Remove cypress test around starting map via URL - increase component code coverage to 83%
23 lines
605 B
TypeScript
23 lines
605 B
TypeScript
import * as React from 'react';
|
|
import {render} from '@testing-library/react';
|
|
import {LocalizedComponent} from '../../test/testHelpers';
|
|
import SurveyFab from './SurveyFab';
|
|
import {onClickHandler} from './SurveyFab';
|
|
|
|
describe('rendering of the SurveyFab', () => {
|
|
const {asFragment} = render(
|
|
<LocalizedComponent>
|
|
<SurveyFab />
|
|
</LocalizedComponent>,
|
|
);
|
|
|
|
it('checks if component renders', () => {
|
|
expect(asFragment()).toMatchSnapshot();
|
|
});
|
|
});
|
|
|
|
describe('test clickHandler', () => {
|
|
it('clickHandler should fire successfully', () => {
|
|
onClickHandler();
|
|
});
|
|
});
|