
import React from 'react';
import { shallow } from 'enzyme';
import Pages from './Pages';

describe('Pages', () => {
  it('should render without crashing', () => {
    shallow(
      <Pages
        user={{}}
        updatePage={() => {}}
        match={{}}
        history={{}}
        addPage={() => {}}
        deletePage={() => {}}
        dialogShow={() => {}}
        loadList={() => {}}
        pages={{ data: [{}], loading: true, loaded: true }}
        sideMenuHide={() => {}}
        sideMenuShow={() => {}}
      />,
    );
  });
});
