fix unused vars flagged by tsc

This commit is contained in:
Horizontal42 2026-08-09 15:56:12 +03:00
parent fe7001d715
commit b2ecd33a26

View file

@ -1,6 +1,6 @@
import { describe, it, expect, beforeAll } from "vitest"; import { describe, it, expect, beforeAll } from "vitest";
import { SumEngine } from "./index"; import { SumEngine } from "./index";
import { qty, EvalError, XRefError, Decimal } from "./types"; import { qty, EvalError, XRefError } from "./types";
import type { XRefResolution, EvalCtx } from "./evaluator"; import type { XRefResolution, EvalCtx } from "./evaluator";
import { evaluate } from "./evaluator"; import { evaluate } from "./evaluator";
import { formatValue } from "./formatter"; import { formatValue } from "./formatter";
@ -440,7 +440,7 @@ describe("evaluation errors", () => {
vars: new Map(), vars: new Map(),
reg: eng.reg, reg: eng.reg,
historicalRates: {}, historicalRates: {},
resolveXRef: (sheet: string, key: string) => ({ ok: false, reason: "xref error" }), resolveXRef: () => ({ ok: false, reason: "xref error" }),
} as unknown as EvalCtx; } as unknown as EvalCtx;
expect(() => evaluate({ k: "xref", sheet: "Sheet", key: "key" }, ctx)).toThrowError(XRefError); expect(() => evaluate({ k: "xref", sheet: "Sheet", key: "key" }, ctx)).toThrowError(XRefError);
}); });