Skip to content

Commit 9d58d93

Browse files
committed
fix(stats): remove unused variables in DashboardView.spec.tsx to fix lint
1 parent 566b8c8 commit 9d58d93

1 file changed

Lines changed: 1 addition & 31 deletions

File tree

webview-ui/src/components/dashboard/__tests__/DashboardView.spec.tsx

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import React from "react"
44
import { render, fireEvent, waitFor, act } from "@/utils/test-utils"
55

6-
import type { StatsBucket, StatsSnapshot, SessionSummary, SessionDetail } from "@roo-code/types"
6+
import type { StatsBucket, StatsSnapshot, SessionSummary } from "@roo-code/types"
77

88
import DashboardView from "../DashboardView"
99

@@ -172,14 +172,6 @@ function makeSession(overrides: Partial<SessionSummary> = {}): SessionSummary {
172172
}
173173
}
174174

175-
function makeSessionDetail(overrides: Partial<SessionDetail> = {}): SessionDetail {
176-
return {
177-
...makeSession(),
178-
apiCalls: [],
179-
...overrides,
180-
}
181-
}
182-
183175
// ── Helpers ──────────────────────────────────────────────────────────────────
184176

185177
/**
@@ -237,28 +229,6 @@ function simulateSessionsResponse(
237229
window.dispatchEvent(new MessageEvent("message", { data }))
238230
}
239231

240-
/**
241-
* Simulates the extension host responding to a getDashboardSessionDetail request.
242-
*/
243-
function simulateSessionDetailResponse(
244-
detail: SessionDetail | null,
245-
error?: string,
246-
requestId?: string,
247-
) {
248-
const rid = requestId ?? getLatestRequestIdByType("getDashboardSessionDetail")
249-
const data: Record<string, unknown> = {
250-
type: "dashboardSessionDetailResponse",
251-
requestId: rid,
252-
}
253-
if (detail !== null) {
254-
data.dashboardSessionDetail = detail
255-
} else {
256-
data.dashboardSessionDetail = null
257-
if (error) data.error = error
258-
}
259-
window.dispatchEvent(new MessageEvent("message", { data }))
260-
}
261-
262232
/**
263233
* Simulates a requestClearNonceResponse from the host.
264234
*/

0 commit comments

Comments
 (0)