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