mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 10:57:36 -02:30
add header toolbar test
This commit is contained in:
16
__tests__/components/PageHeaderToolbar.test.jsx
Normal file
16
__tests__/components/PageHeaderToolbar.test.jsx
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { mount } from 'enzyme';
|
||||||
|
|
||||||
|
import { I18nProvider } from '@lingui/react';
|
||||||
|
import PageHeaderToolbar from '../../src/components/PageHeaderToolbar';
|
||||||
|
|
||||||
|
describe('PageHeaderToolbar', () => {
|
||||||
|
test('renders the expected content', () => {
|
||||||
|
const wrapper = mount(
|
||||||
|
<I18nProvider>
|
||||||
|
<PageHeaderToolbar />
|
||||||
|
</I18nProvider>
|
||||||
|
);
|
||||||
|
expect(wrapper.find('Toolbar')).toHaveLength(1);
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user