fixed dummy test
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Dummy renders correctly 1`] = `
|
||||
<div
|
||||
className={undefined}
|
||||
>
|
||||
Hello,
|
||||
Hamo
|
||||
</div>
|
||||
`;
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user