mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Fix failing test
This commit is contained in:
parent
1e68519c99
commit
8697387d13
@ -120,12 +120,10 @@ describe('delete details', () => {
|
||||
|
||||
test('should return proper results', async () => {
|
||||
JobTemplatesAPI.read.mockResolvedValue({ data: { count: 1 } });
|
||||
|
||||
InventorySourcesAPI.read.mockResolvedValue({ data: { count: 10 } });
|
||||
CredentialInputSourcesAPI.read.mockResolvedValue({ data: { count: 20 } });
|
||||
ExecutionEnvironmentsAPI.read.mockResolvedValue({ data: { count: 30 } });
|
||||
ProjectsAPI.read.mockResolvedValue({ data: { count: 2 } });
|
||||
InventoriesAPI.read.mockResolvedValue({ data: { count: 3 } });
|
||||
|
||||
const { results } = await getRelatedResourceDeleteCounts(
|
||||
relatedResourceDeleteRequests.credential({ id: 1 })
|
||||
@ -133,7 +131,6 @@ describe('delete details', () => {
|
||||
expect(results).toEqual({
|
||||
'Job Templates': 1,
|
||||
Projects: 2,
|
||||
Inventories: 3,
|
||||
'Inventory Sources': 10,
|
||||
'Credential Input Sources': 20,
|
||||
'Execution Environments': 30,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user