fix(lint): remove unused variables in test files
Remove unused import and variable in criticalUIFixes test Update PodList test mocks to use new Interactive* modal components Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
11b77806eb
commit
2a8183daf2
@ -13,13 +13,13 @@ vi.mock("@/components/Kubernetes/LogStreamPanel", () => ({
|
|||||||
<div data-testid="logs-modal" data-namespace={namespace} />
|
<div data-testid="logs-modal" data-namespace={namespace} />
|
||||||
),
|
),
|
||||||
}));
|
}));
|
||||||
vi.mock("@/components/Kubernetes/ShellExecModal", () => ({
|
vi.mock("@/components/Kubernetes/InteractiveShellModal", () => ({
|
||||||
ShellExecModal: ({ namespace }: { namespace: string }) => (
|
InteractiveShellModal: ({ namespace }: { namespace: string }) => (
|
||||||
<div data-testid="shell-modal" data-namespace={namespace} />
|
<div data-testid="shell-modal" data-namespace={namespace} />
|
||||||
),
|
),
|
||||||
}));
|
}));
|
||||||
vi.mock("@/components/Kubernetes/AttachModal", () => ({
|
vi.mock("@/components/Kubernetes/InteractiveAttachModal", () => ({
|
||||||
AttachModal: ({ namespace }: { namespace: string }) => (
|
InteractiveAttachModal: ({ namespace }: { namespace: string }) => (
|
||||||
<div data-testid="attach-modal" data-namespace={namespace} />
|
<div data-testid="attach-modal" data-namespace={namespace} />
|
||||||
),
|
),
|
||||||
}));
|
}));
|
||||||
|
|||||||
@ -6,7 +6,6 @@
|
|||||||
* 4. YAML editor loading race condition
|
* 4. YAML editor loading race condition
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from "react";
|
|
||||||
import { describe, it, expect, vi, beforeEach } from "vitest";
|
import { describe, it, expect, vi, beforeEach } from "vitest";
|
||||||
import { render, screen, fireEvent, waitFor } from "@testing-library/react";
|
import { render, screen, fireEvent, waitFor } from "@testing-library/react";
|
||||||
import { invoke } from "@tauri-apps/api/core";
|
import { invoke } from "@tauri-apps/api/core";
|
||||||
@ -219,7 +218,6 @@ describe("Dark mode – text visibility", () => {
|
|||||||
const root = document.documentElement;
|
const root = document.documentElement;
|
||||||
root.classList.add("dark");
|
root.classList.add("dark");
|
||||||
|
|
||||||
const computedStyle = window.getComputedStyle(root);
|
|
||||||
expect(root.classList.contains("dark")).toBe(true);
|
expect(root.classList.contains("dark")).toBe(true);
|
||||||
|
|
||||||
root.classList.remove("dark");
|
root.classList.remove("dark");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user