Skip to content

Commit aa9e2fb

Browse files
Remove "Succeeded warnings" text
1 parent 8291e52 commit aa9e2fb

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisStats.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,8 @@ export const VariantAnalysisStats = ({
5353
return "Stopped";
5454
}
5555

56-
if (
57-
variantAnalysisStatus === VariantAnalysisStatus.Succeeded &&
58-
skippedRepositoryCount > 0
59-
) {
60-
return "Succeeded warnings";
61-
}
62-
6356
return "Succeeded";
64-
}, [variantAnalysisStatus, skippedRepositoryCount]);
57+
}, [variantAnalysisStatus]);
6558

6659
const duration = useMemo(() => {
6760
if (!completedAt) {

extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisStats.spec.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,10 @@ describe(VariantAnalysisStats.name, () => {
108108
expect(screen.getByText("Stopped")).toBeInTheDocument();
109109
});
110110

111-
it("renders a succeeded warnings text when the variant analysis status is succeeded and skipped repositories count is greater than zero", () => {
112-
render({
113-
variantAnalysisStatus: VariantAnalysisStatus.Succeeded,
114-
skippedRepositoryCount: 5,
115-
});
116-
117-
expect(screen.getByText("Succeeded warnings")).toBeInTheDocument();
118-
});
119-
120111
it("renders a succeeded text when the variant analysis status is succeeded", () => {
121112
render({ variantAnalysisStatus: VariantAnalysisStatus.Succeeded });
122113

123114
expect(screen.getByText("Succeeded")).toBeInTheDocument();
124-
expect(screen.queryByText("Succeeded warnings")).not.toBeInTheDocument();
125115
});
126116

127117
it("does not render the duration when the completedAt is not set", () => {

0 commit comments

Comments
 (0)