import React from 'react';
import { shallow } from 'enzyme';
import CategoryList from 'Components/CategoryList/Component';

/**
 * The component to be tested.
 */
let component;

/**
 * Test the categorylist component.
 */
describe('Category List Component', () => {
	it('should show the categories', () => {
		const categories = [
			{ id: '1', name: 'foo' },
			{ id: '2', name: 'bar' },
		];
		component = shallow(<CategoryList categories={categories}/>);
		component.should.have.exactly(2).descendants('li');
		component.should.contain('foo');
		component.should.contain('bar');
	});
});

import React from 'react';
import { shallow } from 'enzyme';
import CategoryList from 'Components/CategoryList/Component';

/**
 * The component to be tested.
 */
let component;

/**
 * Test the categorylist component.
 */
describe('Category List Component', () => {
	it('should show the categories', () => {
		const categories = [
			{ id: '1', name: 'foo' },
			{ id: '2', name: 'bar' },
		];
		component = shallow(<CategoryList categories={categories}/>);
	});
});

Remove failing test