34 lines
817 B
JavaScript
34 lines
817 B
JavaScript
import React from 'react';
|
|
import { shallow, mount, render } from 'enzyme';
|
|
import Meta from '../../components/Meta';
|
|
|
|
global.__JEST__ = 1;
|
|
|
|
test('Meta successfully mounts with minimal default props', () => {
|
|
const component = shallow(
|
|
<Meta
|
|
url={null}
|
|
messages={{}}
|
|
selectedMessages={[]}
|
|
updateSelectedMessages={() => {}}
|
|
showEditMessageModal={() => {}}
|
|
currentParts={[]}
|
|
onMessageSelected={() => {}}
|
|
onMessageUnselected={() => {}}
|
|
showLoadDbc={() => {}}
|
|
showSaveDbc={() => {}}
|
|
dbcFilename={null}
|
|
dbcLastSaved={null}
|
|
dongleId={null}
|
|
name={null}
|
|
route={null}
|
|
seekTime={0}
|
|
seekIndex={0}
|
|
maxByteStateChangeCount={0}
|
|
isDemo={false}
|
|
live
|
|
/>
|
|
);
|
|
expect(component.exists()).toBe(true);
|
|
});
|