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