mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
30 lines
744 B
JavaScript
30 lines
744 B
JavaScript
import React from 'react';
|
|
import { mount } from 'enzyme';
|
|
import JobsSettings from '../../src/pages/JobsSettings';
|
|
|
|
describe('<JobsSettings />', () => {
|
|
let pageWrapper;
|
|
let pageSections;
|
|
let title;
|
|
|
|
beforeEach(() => {
|
|
pageWrapper = mount(<JobsSettings />);
|
|
pageSections = pageWrapper.find('PageSection');
|
|
title = pageWrapper.find('Title');
|
|
});
|
|
|
|
afterEach(() => {
|
|
pageWrapper.unmount();
|
|
});
|
|
|
|
test('initially renders without crashing', () => {
|
|
expect(pageWrapper.length).toBe(1);
|
|
expect(pageSections.length).toBe(2);
|
|
expect(title.length).toBe(1);
|
|
expect(title.props().size).toBe('2xl');
|
|
pageSections.forEach(section => {
|
|
expect(section.props().variant).toBeDefined();
|
|
});
|
|
});
|
|
});
|