1
0
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:
Keith Grant 2020-02-24 14:05:10 -08:00
parent 8e9fc550f6
commit 6ffc78bcb0
2 changed files with 4 additions and 4 deletions

View File

@ -157,7 +157,7 @@ function InventoryList({ i18n }) {
key="delete"
onDelete={handleInventoryDelete}
itemsToDelete={selected}
pluralizedItemName="Inventories"
pluralizedItemName={i18n._(t`Inventories`)}
/>,
]}
/>

View File

@ -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',
},