18 lines
374 B
JavaScript
Raw Normal View History

2019-05-10 02:15:43 +03:00
// @flow
2018-11-09 20:08:48 +03:00
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();
});
});