fixed dummy test

This commit is contained in:
Senad Uka
2018-04-09 15:24:52 +02:00
parent 0628e9bddc
commit 36dae1b4bb
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Dummy renders correctly 1`] = `
<div
className={undefined}
>
Hello,
Hamo
</div>
`;

View File

@@ -1 +1,12 @@
import React from 'react';
import Dummy from '../Dummy';
import renderer from 'react-test-renderer';
test('Dummy renders correctly', () => {
const component = renderer.create(
<Dummy name="Hamo"/>,
);
let tree = component.toJSON();
expect(tree).toMatchSnapshot();
});