mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
rewrote to use react.sfc
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user