fix(api): add tdpAvg to estFps type in buildPluginGameResponse args
This commit is contained in:
@@ -93,7 +93,7 @@ describe("buildPluginGameResponse — shape contract", () => {
|
||||
const r = await buildPluginGameResponse({
|
||||
game: { id: "g1", steamAppId: 123, title: "X", slug: "x" },
|
||||
entries, recent: entries,
|
||||
estFps: { avg: 72.3, low: 35, onePct: 38, high: 140, count: 25 },
|
||||
estFps: { avg: 72.3, low: 35, onePct: 38, high: 140, count: 25, tdpAvg: 13.5 },
|
||||
})
|
||||
expect(r.estFps).not.toBeNull()
|
||||
expect(r.estFps!.avg).toBe(72.3)
|
||||
|
||||
@@ -71,7 +71,7 @@ export async function buildPluginGameResponse(args: {
|
||||
game: PluginGameRow | null
|
||||
entries?: PluginEntryRow[]
|
||||
recent?: PluginEntryRow[]
|
||||
estFps?: { avg: number; low: number | null; onePct: number | null; high: number | null; count: number } | null
|
||||
estFps?: { avg: number; low: number | null; onePct: number | null; high: number | null; count: number; tdpAvg: number | null } | null
|
||||
}): Promise<PluginGameResponse> {
|
||||
if (!args.game) {
|
||||
return { game: null, estFps: null, topEntries: [], recentEntries: [] }
|
||||
|
||||
Reference in New Issue
Block a user