Skip to content

Commit

Permalink
fix test and updated based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasStordeur committed May 30, 2024
1 parent 8ab35f7 commit c69d9f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/Slices/CreateInstance/UI/CreateInstance.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ test("Given the CreateInstance View When creating an instance with Inter-service
});
expect(apiHelper.pendingRequests[0]).toEqual({
method: "GET",
url: `/lsm/v1/service_inventory/${InterServiceRelations.editable.entity_type}?include_deployment_progress=False&limit=250&filter.order_id=a`,
url: `/lsm/v1/service_inventory/${InterServiceRelations.editable.entity_type}?include_deployment_progress=False&limit=250&filter.id_or_service_identity=a`,
environment: "env",
});

Expand All @@ -235,7 +235,7 @@ test("Given the CreateInstance View When creating an instance with Inter-service
});
expect(apiHelper.pendingRequests[0]).toEqual({
method: "GET",
url: `/lsm/v1/service_inventory/${InterServiceRelations.editable.entity_type}?include_deployment_progress=False&limit=250&filter.order_id=ab`,
url: `/lsm/v1/service_inventory/${InterServiceRelations.editable.entity_type}?include_deployment_progress=False&limit=250&filter.id_or_service_identity=ab`,
environment: "env",
});
await act(async () => {
Expand All @@ -247,7 +247,7 @@ test("Given the CreateInstance View When creating an instance with Inter-service
});
expect(apiHelper.pendingRequests[0]).toEqual({
method: "GET",
url: `/lsm/v1/service_inventory/${InterServiceRelations.editable.entity_type}?include_deployment_progress=False&limit=250&filter.order_id=`,
url: `/lsm/v1/service_inventory/${InterServiceRelations.editable.entity_type}?include_deployment_progress=False&limit=250&filter.id_or_service_identity=`,
environment: "env",
});
});
Expand Down Expand Up @@ -279,7 +279,7 @@ test("Given the CreateInstance View When creating an instance with Inter-service
});
expect(apiHelper.pendingRequests[0]).toEqual({
method: "GET",
url: `/lsm/v1/service_inventory/${InterServiceRelations.editable.entity_type}?include_deployment_progress=False&limit=250&filter.order_id=a`,
url: `/lsm/v1/service_inventory/${InterServiceRelations.editable.entity_type}?include_deployment_progress=False&limit=250&filter.id_or_service_identity=a`,
environment: "env",
});

Expand All @@ -291,7 +291,7 @@ test("Given the CreateInstance View When creating an instance with Inter-service
});
expect(apiHelper.pendingRequests[0]).toEqual({
method: "GET",
url: `/lsm/v1/service_inventory/${InterServiceRelations.editable.entity_type}?include_deployment_progress=False&limit=250&filter.order_id=ab`,
url: `/lsm/v1/service_inventory/${InterServiceRelations.editable.entity_type}?include_deployment_progress=False&limit=250&filter.id_or_service_identity=ab`,
environment: "env",
});
await act(async () => {
Expand All @@ -303,7 +303,7 @@ test("Given the CreateInstance View When creating an instance with Inter-service
});
expect(apiHelper.pendingRequests[0]).toEqual({
method: "GET",
url: `/lsm/v1/service_inventory/${InterServiceRelations.editable.entity_type}?include_deployment_progress=False&limit=250&filter.order_id=`,
url: `/lsm/v1/service_inventory/${InterServiceRelations.editable.entity_type}?include_deployment_progress=False&limit=250&filter.id_or_service_identity=`,
environment: "env",
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/UI/Components/SingleTextSelect/SingleTextSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const SingleTextSelect: React.FC<Props> = ({
}
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [options]);
}, [options, selected]);

const onToggleClick = () => {
setIsOpen(!isOpen);
Expand Down

0 comments on commit c69d9f5

Please sign in to comment.