Fixed the failing test.

This commit is contained in:
Filip Barl
2018-06-29 16:14:51 +02:00
parent b6c55ba3c8
commit 08ed71fc55

View File

@@ -1,8 +1,10 @@
import debug from 'debug';
import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Map as makeMap } from 'immutable';
import { noop } from 'lodash';
import { clickCloseDetails, clickShowTopologyForNode } from '../actions/app-actions';
import { brightenColor, getNeutralColor, getNodeColorDark } from '../utils/color-utils';
@@ -289,6 +291,14 @@ class NodeDetails extends React.Component {
}
}
NodeDetails.propTypes = {
renderNodeDetailsExtras: PropTypes.func,
};
NodeDetails.defaultProps = {
renderNodeDetailsExtras: noop,
};
function mapStateToProps(state, ownProps) {
const currentTopologyId = state.get('currentTopologyId');
return {