Revision 89b8fc37
Added by Amir Fefer over 4 years ago
webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/MonthView.test.js | ||
---|---|---|
import React from 'react';
|
||
import { shallow } from 'enzyme';
|
||
import toJson from 'enzyme-to-json';
|
||
import { shallow } from '@theforeman/test';
|
||
import MonthView from './MonthView';
|
||
|
||
test('MonthView is working properly', () => {
|
||
const component = shallow(<MonthView date="1/21/2019 , 2:22:31 PM" />);
|
||
|
||
expect(toJson(component.render())).toMatchSnapshot();
|
||
expect(component.render()).toMatchSnapshot();
|
||
});
|
Also available in: Unified diff
Fixes #28488 - consume jest config from env