import React from 'react';
import {mount} from 'sentry-test/enzyme';
import PlatformList from 'app/components/platformList';
describe('PlatformList', function() {
it('renders max of three icons from platforms', function() {
const platforms = ['java', 'php', 'javascript', 'cocoa', 'ruby'];
const wrapper = mount();
const icons = wrapper.find('StyledPlatformIcon');
expect(icons).toHaveLength(3);
});
it('renders default if no platforms', function() {
const platforms = [];
const wrapper = mount();
const icons = wrapper.find('StyledPlatformIcon');
expect(icons.first().prop('platform')).toBe('default');
expect(icons).toHaveLength(1);
});
});