monaco-react/src/DiffEditor/index.spec.js

15 lines
351 B
JavaScript

import React from 'react';
import DiffEditor from '.';
import { render } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
describe('<DiffEditor />', () => {
it('should check render with snapshot', () => {
const component = render(
<DiffEditor />,
);
expect(component).toMatchSnapshot();
});
});