mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
add about page tests
This commit is contained in:
15
__tests__/components/About.test.jsx
Normal file
15
__tests__/components/About.test.jsx
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { mount } from 'enzyme';
|
||||||
|
import About from '../../src/components/About';
|
||||||
|
|
||||||
|
let aboutWrapper;
|
||||||
|
let headerElem;
|
||||||
|
|
||||||
|
describe('<About />', () => {
|
||||||
|
test('initially renders without crashing', () => {
|
||||||
|
aboutWrapper = mount(<About />);
|
||||||
|
headerElem = aboutWrapper.find('h2');
|
||||||
|
expect(aboutWrapper.length).toBe(1);
|
||||||
|
expect(headerElem.length).toBe(1);
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user