2019-05-10 02:15:43 +03:00

18 lines
374 B
JavaScript

// @flow
import React from 'react';
import renderer from 'react-test-renderer';
import Layout from './Layout';
describe('Layout', () => {
const props = {
children: 'test',
description: 'test',
title: 'test'
};
it('renders correctly', () => {
const tree = renderer.create(<Layout {...props} />).toJSON();
expect(tree).toMatchSnapshot();
});
});