mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
21 lines
562 B
JavaScript
21 lines
562 B
JavaScript
import React from 'react';
|
|
import { mountWithContexts } from '../enzymeHelpers';
|
|
import ExpandCollapse from '../../src/components/ExpandCollapse';
|
|
|
|
describe('<ExpandCollapse />', () => {
|
|
const onCompact = jest.fn();
|
|
const onExpand = jest.fn();
|
|
const isCompact = false;
|
|
test('initially renders without crashing', () => {
|
|
const wrapper = mountWithContexts(
|
|
<ExpandCollapse
|
|
onCompact={onCompact}
|
|
onExpand={onExpand}
|
|
isCompact={isCompact}
|
|
/>
|
|
);
|
|
expect(wrapper.length).toBe(1);
|
|
wrapper.unmount();
|
|
});
|
|
});
|