import React, { PropTypes } from 'react';
import classnames from 'classnames';
import PureComponent from 'react-pure-render/component';
import { Col, Row } from 'react-bootstrap';
export default class extends PureComponent {
static displayName = 'TestSuite';
static proptTypes = {
tests: PropTypes.arrayOf(PropTypes.object),
refresh: PropTypes.bool
};
renderTests(tests = [], refresh = false) {
return tests.map(({ err, text = '' }, index)=> {
const iconClass = classnames({
'big-icon': true,
'ion-close-circled error-icon': !refresh && !err,
'ion-checkmark-circled success-icon': !refresh && err,
'ion-refresh refresh-icon': refresh
});
return (