test: remove unreachable cases and strengthen weak assertions

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-22 17:19:20 +08:00
1 parent 169062be11
commit abfe510ce1
25 files changed
+64 -302

No files matched your search

@@ -163,7 +163,6 @@ describe("FilePreviewPanel", () => {
expect(codeBlock).toHaveTextContent("print('ok')");
expect(codeBlock).toHaveAttribute("data-language", "python");
expect(codeBlock).toHaveAttribute("data-highlight", "true");
expect(screen.queryByTestId("file-preview-breadcrumb")).not.toBeInTheDocument();
expect(screen.queryByText("quicksort.py")).not.toBeInTheDocument();
});