17 lines
518 B
JavaScript
17 lines
518 B
JavaScript
import React from 'react';
|
|
import { shallow, mount, render } from 'enzyme';
|
|
|
|
import MessageBytes from '../../components/MessageBytes';
|
|
import DbcUtils from '../../utils/dbc';
|
|
import DBC from '../../models/can/dbc';
|
|
|
|
global.__JEST__ = 1;
|
|
|
|
test('MessageBytes successfully mounts with minimal default props', () => {
|
|
const message = DbcUtils.createMessageSpec(new DBC(), 0, '0', 1);
|
|
const component = shallow(
|
|
<MessageBytes seekTime={0} message={message} live />
|
|
);
|
|
expect(component.exists()).toBe(true);
|
|
});
|