fixing types

This commit is contained in:
Peter Holmberg
2018-09-27 14:19:36 +02:00
parent 1e2c06083a
commit cabc4c4bfe
3 changed files with 8 additions and 12 deletions

View File

@@ -2,12 +2,13 @@ import React from 'react';
import { shallow } from 'enzyme';
import { PluginListPage, Props } from './PluginListPage';
import { NavModel, Plugin } from '../../types';
import { LayoutModes } from '../../core/components/LayoutSelector/LayoutSelector';
const setup = (propOverrides?: object) => {
const props: Props = {
navModel: {} as NavModel,
plugins: [] as Plugin[],
layoutMode: 'grid',
layoutMode: LayoutModes.Grid,
loadPlugins: jest.fn(),
};