Skip to content

Commit 80a8988

Browse files
committed
add entity type to message
1 parent cff5f0e commit 80a8988

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugins/sonarqube-issues/src/components/SonarqubeIssues.test.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,7 @@ describe("Issues", () => {
203203
await waitFor(() => {
204204
expect(queryByText("Loading")).not.toBeInTheDocument();
205205
expect(
206-
queryByText(
207-
"We could not find any Sonarqube issues associated with this entity"
208-
)
206+
queryByText(/We could not find any Sonarqube issues/)
209207
).toBeInTheDocument();
210208
});
211209
});

plugins/sonarqube-issues/src/components/SonarqubeIssues.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@ const SonarqubeIssues: React.FC<SonarqubeIssuesProps> = ({ entityYaml }) => {
300300
) : (
301301
<Box backgroundColor="light" padding={3} borderRadius={2}>
302302
<Text>
303-
We could not find any Sonarqube issues associated with this entity
303+
We could not find any Sonarqube issues associated with this
304+
{" "}
305+
{context?.entity?.type ?? "entity"}.
304306
</Text>
305307
</Box>
306308
);

0 commit comments

Comments
 (0)