import { describe, expect, test } from "vitest"; import { withRecord } from "../src/commons/record-util"; describe("withRecord", () => { test("clear", () => { const oirgianlRec = { a: 1 }; withRecord(oirgianlRec).clear(); expect(oirgianlRec).toEqual({}); }); test("replace", () => { const oirgianlRec = { a: 1 }; withRecord(oirgianlRec).replace({ a: 2 }); expect(oirgianlRec).toEqual({ a: 2 }); }); });