mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-03-14 03:18:38 +01:00
18 lines
374 B
JavaScript
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();
|
|
});
|
|
});
|