24 lines
643 B
JavaScript
24 lines
643 B
JavaScript
import React from 'react';
|
|
import { shallow, mount, render } from 'enzyme';
|
|
import SignalLegend from '../../components/SignalLegend';
|
|
|
|
global.__JEST__ = 1;
|
|
|
|
test('SignalLegend successfully mounts with minimal default props', () => {
|
|
const component = shallow(
|
|
<SignalLegend
|
|
signals={{}}
|
|
signalStyles={{}}
|
|
highlightedSignal={null}
|
|
onSignalHover={() => {}}
|
|
onSignalHoverEnd={() => {}}
|
|
onTentativeSignalChange={() => {}}
|
|
onSignalChange={() => {}}
|
|
onSignalRemove={() => {}}
|
|
onSignalPlotChange={() => {}}
|
|
plottedSignals={[]}
|
|
/>
|
|
);
|
|
expect(component.exists()).toBe(true);
|
|
});
|