awx/__tests__/components/BrandLogo.test.jsx
Michael Abashian ffcb655038
Convert Tower logo/strings to AWX (#253)
Sets up awx logo and strings
2019-06-10 14:31:12 -04:00

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);
});
});