mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-06-08 05:39:52 +02:00
fix: remove unused variables and apply prettier formatting
- Remove unused connectedCount and relayStatesForReq variables - Fix prettier formatting in ReqViewer.tsx - All tests passing (634/634) - Build successful
This commit is contained in:
@@ -405,12 +405,12 @@ describe("getStatusText", () => {
|
||||
};
|
||||
|
||||
it("should return correct text for each status", () => {
|
||||
expect(
|
||||
getStatusText({ ...baseState, status: "discovering" }),
|
||||
).toBe("DISCOVERING");
|
||||
expect(
|
||||
getStatusText({ ...baseState, status: "connecting" }),
|
||||
).toBe("CONNECTING");
|
||||
expect(getStatusText({ ...baseState, status: "discovering" })).toBe(
|
||||
"DISCOVERING",
|
||||
);
|
||||
expect(getStatusText({ ...baseState, status: "connecting" })).toBe(
|
||||
"CONNECTING",
|
||||
);
|
||||
expect(getStatusText({ ...baseState, status: "loading" })).toBe("LOADING");
|
||||
expect(getStatusText({ ...baseState, status: "live" })).toBe("LIVE");
|
||||
expect(getStatusText({ ...baseState, status: "partial" })).toBe("PARTIAL");
|
||||
|
||||
@@ -34,12 +34,8 @@ export function deriveOverallState(
|
||||
const receivingCount = states.filter(
|
||||
(s) => s.subscriptionState === "receiving",
|
||||
).length;
|
||||
const eoseCount = states.filter(
|
||||
(s) => s.subscriptionState === "eose",
|
||||
).length;
|
||||
const errorCount = states.filter(
|
||||
(s) => s.connectionState === "error",
|
||||
).length;
|
||||
const eoseCount = states.filter((s) => s.subscriptionState === "eose").length;
|
||||
const errorCount = states.filter((s) => s.connectionState === "error").length;
|
||||
const disconnectedCount = states.filter(
|
||||
(s) => s.connectionState === "disconnected",
|
||||
).length;
|
||||
|
||||
Reference in New Issue
Block a user