This commit is contained in:
Peter Holmberg
2018-09-26 15:12:06 +02:00
parent 64eace96c0
commit 70c3e1f3bc
11 changed files with 536 additions and 6 deletions

View File

@@ -0,0 +1,24 @@
import React from 'react';
import { shallow } from 'enzyme';
import PluginList from './PluginList';
import { getMockPlugins } from './__mocks__/pluginMocks';
const setup = (propOverrides?: object) => {
const props = Object.assign(
{
plugins: getMockPlugins(5),
layout: 'grid',
},
propOverrides
);
return shallow(<PluginList {...props} />);
};
describe('Render', () => {
it('should render component', () => {
const wrapper = setup();
expect(wrapper).toMatchSnapshot();
});
});