12 lines
397 B
TypeScript
12 lines
397 B
TypeScript
import { render } from '@testing-library/react';
|
|
import { mockAllIsIntersecting } from 'react-intersection-observer/test-utils';
|
|
import AffectedCommand from './affected-command';
|
|
|
|
describe('AffectedCommand', () => {
|
|
it('should render successfully', () => {
|
|
mockAllIsIntersecting(true);
|
|
const { baseElement } = render(<AffectedCommand />);
|
|
expect(baseElement).toBeTruthy();
|
|
});
|
|
});
|