mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-12 11:01:48 -05:00
- show last breadcrum item as Title on new line - add activity stream type (to display activity stream icon link in header)
30 lines
714 B
JavaScript
30 lines
714 B
JavaScript
import React from 'react';
|
|
|
|
import { mountWithContexts } from '../../../testUtils/enzymeHelpers';
|
|
|
|
import InstanceGroups from './InstanceGroups';
|
|
|
|
jest.mock('react-router-dom', () => ({
|
|
...jest.requireActual('react-router-dom'),
|
|
}));
|
|
|
|
describe('<InstanceGroups/>', () => {
|
|
let pageWrapper;
|
|
let pageSections;
|
|
|
|
beforeEach(() => {
|
|
pageWrapper = mountWithContexts(<InstanceGroups />);
|
|
pageSections = pageWrapper.find('PageSection');
|
|
});
|
|
|
|
afterEach(() => {
|
|
pageWrapper.unmount();
|
|
});
|
|
|
|
test('initially renders without crashing', () => {
|
|
expect(pageWrapper.length).toBe(1);
|
|
expect(pageSections.length).toBe(1);
|
|
expect(pageSections.first().props().variant).toBe('light');
|
|
});
|
|
});
|