mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 05:31:22 -03:30
25 lines
606 B
JavaScript
25 lines
606 B
JavaScript
import React from 'react';
|
|
import { mountWithContexts } from '../enzymeHelpers';
|
|
import TowerLogo from '../../src/components/TowerLogo';
|
|
|
|
let logoWrapper;
|
|
let towerLogoElem;
|
|
let svgElem;
|
|
|
|
const findChildren = () => {
|
|
towerLogoElem = logoWrapper.find('TowerLogo');
|
|
svgElem = logoWrapper.find('svg');
|
|
};
|
|
|
|
describe('<TowerLogo />', () => {
|
|
test('initially renders without crashing', () => {
|
|
logoWrapper = mountWithContexts(
|
|
<TowerLogo />
|
|
);
|
|
findChildren();
|
|
expect(logoWrapper.length).toBe(1);
|
|
expect(towerLogoElem.length).toBe(1);
|
|
expect(svgElem.length).toBe(1);
|
|
});
|
|
});
|