import React from 'react';

import Slice from './index';

const data = {
  type: 'type',
  children: 'children',
  title: 'title',
  background: 'grey',
  id: '1',
};

describe('Slice', () => {
  const defaultElement = <Slice {...data} />;
  let wrapper;

  beforeEach(() => {
    wrapper = shallow(defaultElement);
  });

  it('should render correctly', () => {
    expect(wrapper).toMatchSnapshot();
  });
});
