Convert Tower logo/strings to AWX (#253)

Sets up awx logo and strings
This commit is contained in:
Michael Abashian
2019-06-10 14:31:12 -04:00
committed by GitHub
parent 2ae93261d1
commit ffcb655038
23 changed files with 1022 additions and 488 deletions

View File

@@ -1,24 +1,24 @@
import React from 'react';
import { mountWithContexts } from '../enzymeHelpers';
import TowerLogo from '../../src/components/TowerLogo';
import BrandLogo from '../../src/components/BrandLogo';
let logoWrapper;
let towerLogoElem;
let brandLogoElem;
let svgElem;
const findChildren = () => {
towerLogoElem = logoWrapper.find('TowerLogo');
brandLogoElem = logoWrapper.find('BrandLogo');
svgElem = logoWrapper.find('svg');
};
describe('<TowerLogo />', () => {
describe('<BrandLogo />', () => {
test('initially renders without crashing', () => {
logoWrapper = mountWithContexts(
<TowerLogo />
<BrandLogo />
);
findChildren();
expect(logoWrapper.length).toBe(1);
expect(towerLogoElem.length).toBe(1);
expect(brandLogoElem.length).toBe(1);
expect(svgElem.length).toBe(1);
});
});