diff --git a/tests/unit/persistence.test.ts b/tests/unit/persistence.test.ts index f6881da..16267c4 100644 --- a/tests/unit/persistence.test.ts +++ b/tests/unit/persistence.test.ts @@ -303,10 +303,10 @@ describe("slot store — P1 per-file atomic + P5 cap + files/assets", () => { const proto = (globalThis as unknown as { IDBObjectStore: { prototype: IDBObjectStore } }) .IDBObjectStore.prototype; + // Deliberate prototype patch — unbound read/assign is the point of the shim. + // eslint-disable-next-line @typescript-eslint/unbound-method const originalPut = proto.put; let injected = 0; - // Deliberate prototype patch — `this` scoping is the point of the shim. - // eslint-disable-next-line proto.put = function (this: IDBObjectStore, value: unknown, key?: IDBValidKey) { const rec = value as { bytes?: number } | null; if (rec && typeof rec.bytes === "number" && rec.bytes >= 1024) {