mirror of
https://github.com/ansible/awx.git
synced 2024-10-30 13:55:31 +03:00
add missing i18n; fix test names
This commit is contained in:
parent
8e9fc550f6
commit
6ffc78bcb0
@ -157,7 +157,7 @@ function InventoryList({ i18n }) {
|
||||
key="delete"
|
||||
onDelete={handleInventoryDelete}
|
||||
itemsToDelete={selected}
|
||||
pluralizedItemName="Inventories"
|
||||
pluralizedItemName={i18n._(t`Inventories`)}
|
||||
/>,
|
||||
]}
|
||||
/>
|
||||
|
@ -141,7 +141,7 @@ describe('<InventoryList />', () => {
|
||||
jest.clearAllMocks();
|
||||
});
|
||||
|
||||
test('should load and render teams', async () => {
|
||||
test('should load and render inventories', async () => {
|
||||
let wrapper;
|
||||
await act(async () => {
|
||||
wrapper = mountWithContexts(<InventoryList />);
|
||||
@ -151,7 +151,7 @@ describe('<InventoryList />', () => {
|
||||
expect(wrapper.find('InventoryListItem')).toHaveLength(3);
|
||||
});
|
||||
|
||||
test('should select team when checked', async () => {
|
||||
test('should select inventory when checked', async () => {
|
||||
let wrapper;
|
||||
await act(async () => {
|
||||
wrapper = mountWithContexts(<InventoryList />);
|
||||
@ -254,7 +254,7 @@ describe('<InventoryList />', () => {
|
||||
response: {
|
||||
config: {
|
||||
method: 'delete',
|
||||
url: '/api/v2/teams/1',
|
||||
url: '/api/v2/inventory/1',
|
||||
},
|
||||
data: 'An error occurred',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user