mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
add header toolbar test
This commit is contained in:
parent
23e34bcbbe
commit
0d565eb3e3
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);
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user