rewrote to use react.sfc

This commit is contained in:
Peter Holmberg
2018-09-27 12:15:41 +02:00
parent 70c3e1f3bc
commit 1e2c06083a
10 changed files with 66 additions and 26 deletions

View File

@@ -2,12 +2,13 @@ import React from 'react';
import { shallow } from 'enzyme';
import PluginList from './PluginList';
import { getMockPlugins } from './__mocks__/pluginMocks';
import { LayoutModes } from '../../core/components/LayoutSelector/LayoutSelector';
const setup = (propOverrides?: object) => {
const props = Object.assign(
{
plugins: getMockPlugins(5),
layout: 'grid',
layoutMode: LayoutModes.Grid,
},
propOverrides
);