mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 13:41:28 -03:30
17 lines
480 B
JavaScript
17 lines
480 B
JavaScript
import React from 'react';
|
|
import { mount } from 'enzyme';
|
|
import CapitalizeText from '../../src/components/CapitalizeText';
|
|
|
|
describe('<CapitalizeText />', () => {
|
|
let capitalizeTextWrapper;
|
|
|
|
test('initially renders without crashing', () => {
|
|
capitalizeTextWrapper = mount(
|
|
<CapitalizeText text="foo" />
|
|
);
|
|
expect(capitalizeTextWrapper.length).toBe(1);
|
|
expect(capitalizeTextWrapper.text()).toEqual('Foo');
|
|
capitalizeTextWrapper.unmount();
|
|
});
|
|
});
|